创建镜像仓库后的步骤是: 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:[镜像版本号]