我试图将docker镜像推送到存储库。
遵循的步骤 -
您尝试推送的虚拟存储库很可能只将远程存储库配置为能够推送到的目标。我试图使用两个不同的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服务器上查看已配置的存储库