2017-06-29 78 views
0

将我的码头从1.8.2-el7升级到版本1.12.6后,它无法从码头中心拉我的私人图像。无法从码头中心拉我的私人图像

我能够执行列表图像命令

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 

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

回答

0

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

如果你没有指定任何,码头工人会寻找你没有的latest。所以拉,因为这对标签1:

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

或者这样的标签2:

sudo docker -H tcp://test-app01.local:2376 pull account/image1:tag2 
+0

真实的,如果我不提任何它应该拿出默认(最新的)图像。 – SPM

+0

似乎问题是从码头中心拉我的私人形象。如果我将图像从私密转为公开,它可以将其拉开。 – SPM

相关问题