如何从Docker Hub进行拉取-拒绝拉取访问的存储库不存在或可能需要'docker login'

时间:2019-04-05 11:48:23

标签: docker dockerhub docker-pull

我之前-一段时间之前-从Docker提取图像,但是现在看来情况已经改变。

https://hub.docker.com/r/datagrip为例。文档指出安装如下

docker pull sath89/oracle-xe-11g

这不再适用于当前的Docker集线器。我可以尝试最新的

[myuser:~] $ docker pull sath89/oracle-xe-11g
Using default tag: latest
Error response from daemon: pull access denied for sath89/oracle-xe-11g, repository does not exist or may require 'docker login'

或标记11.2

[myuser:~] 1 $ docker pull sath89/oracle-xe-11g:11.2
Error response from daemon: pull access denied for sath89/oracle-xe-11g, repository does not exist or may require 'docker login'

我当然可以尝试登录-登录成功,但是提取图像仍然无法正常工作。

[myuser:~] 1 $ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: mydockerhubuser
Password: 
WARNING! Your password will be stored unencrypted in /home/myuser/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
[myuser:~] $ docker pull sath89/oracle-xe-11g:11.2
Error response from daemon: pull access denied for sath89/oracle-xe-11g, repository does not exist or may require 'docker login'
[myuser:~] 1 $ 

如今从Docker集线器中提取映像的秘密是什么?曾经如此简单。太容易了。

0 个答案:

没有答案