无法从docker hub中提取我的私有映像

时间:2017-06-29 11:40:47

标签: docker boot2docker docker-machine

将我的docker从1.8.2-el7升级到版本1.12.6后,它无法从docker hub中提取我的私有映像。

我能够执行列表图像命令

sudo docker -H tcp://test-app01.local:2376 images
REPOSITORY                TAG                 IMAGE ID            CREATED             SIZE
account/image1   tag1                a4c286f0ec9e        10 hours ago        864.7 MB
ubuntu                    latest              d355ed3537e9        8 days ago          119.2 MB
account/image1   tag2          4abd8c3ed720        3 months ago        878.8 MB

但是成功登录后无法从回购中提取最新图像。

sudo docker -H tcp://test-app01.local:2376 login -u username -p password
Login Succeeded

sudo docker -H tcp://test-app01.local:2376 pull  account/image1:tag1
Using default tag: tag1
Pulling repository docker.io/account/image1
Error: image account/image1:latest not found

有人可以协助解决这个问题。

1 个答案:

答案 0 :(得分:0)

正如您在image命令中所看到的,您只有tag1tag2图像标记。

如果您没有指定,则码头工具会查找您不具备的latest。因此,对于tag1:

sudo docker -H tcp://test-app01.local:2376 pull  account/image1:tag1

或者这对于tag2:

sudo docker -H tcp://test-app01.local:2376 pull  account/image1:tag2
相关问题