未能从dockerhub拉出docker / whalesay,

时间:2015-08-11 06:10:51

标签: docker

我在ubuntu14.04-64bit上安装了docker,当我想运行一个demo时,会发生错误,

y7:~$ docker run docker/whalesay cowsay boo
Unable to find image 'docker/whalesay:latest' locally
Repository docker/whalesay already being pulled by another client.  Waiting.
Error response from daemon: No such image: docker/whalesay (tag: latest)
7:~$ docker run docker/whalesay
Unable to find image 'docker/whalesay:latest' locally
latest: Pulling from docker/whalesay

e9e06b06e14c: Pulling fs layer 
a82efea989f9: Pulling fs layer 
e9e06b06e14c: Error pulling dependent layers 
07f8e8c5e660: Pulling fs layer 
676c4a1897e6: Pulling fs layer 
5b74edbcaa5b: Pulling fs layer 
1722f41ddcb5: Pulling fs layer 
99da72cfe067: Pulling fs layer 
5d5bd9951e26: Pulling fs layer 
fb434121fc77: Download complete 
fb434121fc77: Pulling image (latest) from docker/whalesay, endpoint: https://regfb434121fc77: Error pulling image (latest) from docker/whalesay, endpoint: https://registry-1.docker.io/v1/, Server error: Status 0 whilefetching image layer (fb434121fc77: Error pulling image (latest) from  docker/whalesay, Server error: Status 0 while fetching image layer  (e9e06b06e14c2f7d8df0251e3bb852c3a10a70639498Error pulling image (latest)  from docker/whalesay, Server error: Status 0 while fetching image layer   (e9e06b06e14c2f7d8df0251e3bb852c3a10a70639498163d4f180a823c18fdfc)

2 个答案:

答案 0 :(得分:1)

消息Error response from daemon: No such image: docker/whalesay (tag: latest)有点令人困惑,但真正的错误是它上面的一行:

Repository docker/whalesay already being pulled by another client.  Waiting.

如果您开始拉回一个仓库,然后 control c ,Docker守护程序将暂停一段时间并拒绝对该仓库进行进一步的拉动。

答案 1 :(得分:1)

有时系统可能需要同时拥有一些本地docker repos,以及DockerHub上托管的docker镜像。确保您指向DockerHub仓库的最佳方法是使用

docker.io/<repo>/<app>

在您的情况下,请尝试

docker.io/docker/whalesay