docker仓库使用简介

1.docker 登陆后 push镜像到docker hub 中遇到unauthorized authentication required问题,

镜像分公有和私有,你pull的镜像是公有镜像,由docker hub来维护,那个地址对你来说只能做pull操作,不能做push操作,所以会提示没有权限。
你要push到你自己的镜像库中去。先要用tag修改下镜像的名字,也就是docker tag hello-world your_namespace/hello-world
docker push your_namespace/hello-world.
比如我的hub的repo名为billdan, 并新新建了一个hello-world镜像则需要如下操作:
docker tag hello-world billdan/hello-world
docker push billdan/hello-world

 

猜你喜欢

转载自dbp5588.iteye.com/blog/2409942
今日推荐