簡體   English   中英

嘗試將映像推送到Docker注冊表

[英]Trying to push an image to the docker registry

我正在嘗試將Docker映像推送到Docker中心(注冊表),但出現錯誤。 這是什么問題?

   root@ubuntu-512mb-nyc2-01:~# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you `don't have a Docker ID, head over to https://hub.docker.com to create one.`
Username : 
Password: 
Login Succeeded
root@ubuntu-512mb-nyc2-01:~# docker push nodevolume/new:0.1
The push refers to a repository [docker.io/nodevolume/new]
c5bcc1df7ac9: Preparing 
6f6073c5df6d: Preparing 
dec9270df6f5: Preparing 
9f7fef8e5d59: Preparing 
346f6530205e: Preparing 
98a7412556fb: Waiting 
7598955b0d14: Waiting 
5f70bf18a086: Waiting 
5b5be35aaec4: Waiting 
4e2fee1e7083: Waiting 
1822b2b47122: Waiting 
7394707b3914: Waiting 
unauthorized: authentication required
root@ubuntu-512mb-nyc2-01:~# 

在我的日志中顯示:

    time="2016-05-11T12:45:31.133777251-04:00" level=error msg="Upload failed: unauthorized: authentication required" 
time="2016-05-11T12:45:31.136657146-04:00" level=error msg="Upload failed: unauthorized: authentication required" 
time="2016-05-11T12:45:31.138376928-04:00" level=error msg="Upload failed: unauthorized: authentication required" 
time="2016-05-11T12:45:31.140385526-04:00" level=error msg="Upload failed: unauthorized: authentication required" 
time="2016-05-11T12:45:31.141045576-04:00" level=error msg="Attempting next endpoint for push after error: unauthorized: authentication required" 
time="2016-05-11T13:11:48.838177306-04:00" level=error msg="Upload failed: unauthorized: authentication required" 
time="2016-05-11T13:11:48.839113848-04:00" level=error msg="Attempting next endpoint for push after error: unauthorized: authentication required" 
root@ubuntu-512mb-nyc2-01:~#

節點版本-這是我正在使用的節點的版本。 如何確定我是否具有推送到Docker Hub的正確權限?

    Client:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:30:23 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.1
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   5604cbe
 Built:        Tue Apr 26 23:30:23 2016
 OS/Arch:      linux/amd64

您正在嘗試推送到您無權訪問的帳戶; nodevolume/new存儲庫是指Docker Hub上的nodevolume帳戶(但該帳戶不存在)。 將其更改為<your-hub-account>/new ,您應該可以推送圖像。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM