所有示例均在gihub(ssh_base)中====>https://github.com/chengyangyang

docker 新手入门 (阿里镜像仓库的使用)

 

  

  创建镜像仓库后的步骤是:   https://help.aliyun.com/document_detail/60743.html?spm=a2c4g.11186623.6.546.79be52f3yrJg4P

  1.docker login registry.cn-hangzhou.aliyuncs.com    //链接的哪里的服务器

  2.输入你的账户,也就是阿里的账号

  3.输入密码 就是  registry的密码

  4.创建本地的镜像之后

  点击镜像之后,阿里上面提示怎么推送.

sudo docker login --username=y390518881 registry.cn-hangzhou.aliyuncs.com
$ sudo docker tag [ImageId] registry.cn-hangzhou.aliyuncs.com/sxmd/sxmd-private:[镜像版本号]
$ sudo docker push registry.cn-hangzhou.aliyuncs.com/sxmd/sxmd-private:[镜像版本号]

 

  拉取镜像

  1.登录  sudo docker login --username=y390518881 registry.cn-hangzhou.aliyuncs.com

  2.拉取镜像  sudo docker pull registry.cn-hangzhou.aliyuncs.com/sxmd/sxmd-private:[镜像版本号]

  

posted @ 2019-01-17 13:29  ☞书香门第☜  阅读(309)  评论(0编辑  收藏  举报
http://count.knowsky.com/count1/count.asp?id=434520&sx=1&ys=64"