无法从docker中心拉我的私人图像

在将我的docker从1.8.2-el7升级到1.12.6版之后,它无法从Docker集线器中拉出我的私人镜像。

我能够执行列表图像命令

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 

但是,成功login后无法从回购中获取最新图片。

 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 

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

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

如果你没有指定任何,docker将寻找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