#新提交创建一个镜像
docker commit -a zzmm -m "new mycentos 1.4 from centos to aliyun" 55901e66151f mycentos:1.4
[root@centos7-basic data]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mycentos 1.4 6300bb78d7e1 8 seconds ago 220MB
[root@centos7-basic data]# docker tag 6300bb78d7e1 registry.cn-hangzhou.aliyuncs.com/abcdbuy/mycentos:1.4.1 #(版本号可自行修改)
[root@centos7-basic data]# docker push registry.cn-hangzhou.aliyuncs.com/abcdbuy/mycentos:1.4.1
The push refers to repository [registry.cn-hangzhou.aliyuncs.com/abcdbuy/mycentos]
9e607bb861a7: Pushed
推送完毕,宿主机镜像会多一项
[root@centos7-basic data]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mycentos 1.4 6300bb78d7e1 About an hour ago 220MB
registry.cn-hangzhou.aliyuncs.com/abcdbuy/mycentos 1.4.1 6300bb78d7e1 About an hour ago 220MB
[root@centos7-basic data]# docker pull registry.cn-hangzhou.aliyuncs.com/abcdbuy/mycentos:1.4.1
1.4.1: Pulling from abcdbuy/mycentos
Digest: sha256:5cbf2fe99d0f62d731e6bd22196e07243f2b34e12d7acf4d63a
Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/abcdbuy/mycentos:1.4.1
[root@centos7-basic data]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.cn-hangzhou.aliyuncs.com/abcdbuy/mycentos 1.4.1 6300bb78d7e1 About an hour ago 220MB
mycentos 1.4 6300bb78d7e1 About an hour ago 220MB
Docker本地镜像推送到阿里云以已有的容器生成新的镜像#新提交创建一个镜像 docker commit -a zzmm -m "new mycentos 1.4 from centos to aliyun" 55901e66151f mycentos:1.4[root@centos7-basic data]# docker imagesREPOSITORY TA...