码迷,mamicode.com
首页 > 其他好文 > 详细

You cannot push a "root" repository.

时间:2018-05-08 17:42:42      阅读:889      评论:0      收藏:0      [点我收藏+]

标签:push a

[root@docker1 ~]# docker push sshd:centos

Error response from daemon: You cannot push a "root" repository. Please rename your repository to docker.io/<user>/<repo> (ex: docker.io/<user>/sshd)


[root@docker1 ~]# docker tag docker.io/nginx 127.0.0.1:5000/nginx:latest

[root@docker1 ~]# docker images
REPOSITORY                   TAG            IMAGE ID            CREATED             SIZE
127.0.0.1:5000/nginx          latest         ae513a47849c        7 days ago          108.9 MB
docker.io/nginx                 latest         ae513a47849c        7 days ago          108.9 MB
[root@docker1 ~]# docker push 127.0.0.1:5000/nginx:latest
The push refers to a repository [127.0.0.1:5000/nginx:latest]
7ab428981537: Image successfully pushed
82b81d779f83: Image successfully pushed
d626a8ad97a1: Image successfully pushed
Pushing tag for rev [ae513a47849c] on {http://127.0.0.1:5000/v1/repositories/nginx.latest/tags/latest}

You cannot push a "root" repository.

标签:push a

原文地址:http://blog.51cto.com/sf1314/2114059

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!