错误:无法在未配置默认本地部署的情况下上载到虚拟存储库(Docker artifactory)

问题描述 投票:0回答:1

我试图将docker镜像推送到存储库。

但我不断得到以下错误 - enter image description here

遵循的步骤 -

  1. 登录到“docker login https://docker.wdf.sap.corp:50000/
  2. 获得了我的用户名/密码的授权
  3. 创建了本地泊坞窗图像
  4. 码头推进了吗? - ''docker push docker.wdf.sap.corp:50000 / taaas / ws-python:latest''
docker artifactory jfrog-cli
1个回答
3
投票

您尝试推送的虚拟存储库很可能只将远程存储库配置为能够推送到的目标。我试图使用两个不同的docker存储库(都是虚拟的)在我自己的Artifactory实例上复制你的问题:

首先,我配置了本地和远程存储库(配置的目标是docker-local, bintray-docker-remote, docker-remote

$ docker tag mynewimage:latest myartifactory.server/docker/mynewimage
$ docker push myartifactory.server/docker/mynewimage
The push refers to repository [myartifactory.server/docker/mynewimage]
7bff100f35cb: Layer already exists
latest: digest: sha256:3d2e482b82608d153a374df3357c0291589a61cc194ec4a9ca2381073a17f58e size: 528

第二个存储库只配置了远程存储库(docker-remote

$ docker tag mynewimage:latest myartifactory.server/newdocker/mynewimage:latest
$ docker push myartifactory.server/newdocker/mynewimage:latest
The push refers to repository [myartifactory.server/newdocker/mynewimage]
7bff100f35cb: Retrying in 1 second
unknown: Unable to upload into a virtual repository without default local deployment configured.

因此,对于第二个,我有完全相同的问题。您可以在https://your-artifactory-server/artifactory/webapp/#/admin/repositories/virtual上的Artifactory服务器上查看已配置的存储库

© www.soinside.com 2019 - 2024. All rights reserved.