我可以从私有镜像中提取 Docker 集线器免费私有仓库吗?

时间:2021-01-18 14:39:40

标签: docker

我正在尝试从 Docker 集线器免费私有存储库中提取我的私有镜像。 这是我所做的。

  1. 验证 myrepo/myimage 作为私有映像存在于 Docker Hub 中。
  2. 运行以下代码

$ docker login docker.io -u myusername

密码:

WARNING! Your password will be stored unencrypted in /home/sha/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded

$ docker push myusername/xxx-test:latest

The push refers to repository [docker.io/myusername/xxx-test]
e836ed963202: Pushed
24769bc5b044: Pushed
75b121557396: Pushed
4075573f4aa9: Pushed
fa6f238ab393: Mounted from myusername/multi-worker
d6100d978ba2: Mounted from myusername/multi-worker
88b43919be61: Mounted from myusername/multi-worker
0fcbbeeeb0d7: Mounted from myusername/multi-worker
latest: digest: sha256:985d3ed5e09915d5c84431243d511798ac4219a69ca3e73c6514dcb903b32853 size: 1990

$ docker pull myusername/xxx-test:latest

Error response from daemon: pull access denied for myusername/xxx-test, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

然而,Docker hub 显示它已被拉取。 enter image description here

我搜索过 SO 并在同一主题上搜索过,并尝试了他们的所有建议。到目前为止没有任何效果。只有当我转到图像设置并将其公开时,它才会起作用。

有任何输入吗?

更新 按照登录命令,我立即进行了推送,成功了。 然后立即对同一张图片进行了拉取,但失败了。

0 个答案:

没有答案