2017-06-29 81 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

相關問題