如何为Docker push指定不同的存储库?
我在这里有一个私人存储库: 当我构建和镜像并尝试将其推送到那里时,失败如下:如何为Docker push指定不同的存储库?,docker,Docker,我在这里有一个私人存储库: 当我构建和镜像并尝试将其推送到那里时,失败如下: docker login sudo docker push istvan:xxx 错误是: The push refers to a repository [docker.io/library/istvan] 2456c4c8fd2b: Preparing 5903f32c0854: Preparing 549bd34bfa87: Preparing 08586c0f628f: Preparing 2aebd096
docker login
sudo docker push istvan:xxx
错误是:
The push refers to a repository [docker.io/library/istvan]
2456c4c8fd2b: Preparing
5903f32c0854: Preparing
549bd34bfa87: Preparing
08586c0f628f: Preparing
2aebd096e0e2: Preparing
denied: requested access to the resource is denied
您需要标记要推送的图像以包含存储库名称:
docker tag <image> <username>/<image-name>:<tag>
docker标签/:
然后推送标记的图像:
docker push <username>/<image-name>:<tag>
docker推送/: