docker登录容器镜像仓库

docker登录容器镜像仓库

容器镜像仓库

  • 就是我们平时自己构建的镜像有一个存储的位置,方便自己平时进行拉取,测试用的

  • 我使用的是ucloud这容器仓库

  • ucloud.cn

登录容器仓库的操作

  1. docker login
docker login uhub.service.ucloud.cn# username 为登录的邮箱# password 为账户密码或者仓库的独立密码
  1. 进行推送镜像到仓库上去
# 首先需要将镜像的标签修改一下docker tag centos:jichu uhub.service.ucloud.cn/qwimages/centos:jichu# 推送镜像上去docker push uhub.service.ucloud.cn/qwimages/centos:jichu