一、下载一个镜像image文件
[root@localhost data]# docker search centos7.5
[root@localhost data]# docker pull lanvv/centos7.5-yum
二、将镜像推送到Registry
[root@localhost data]# docker login --username=lllisland registry.cn-hangzhou.aliyuncs.com
输入密码:
[root@localhost data]# docker tag 89f8a97db0b5 registry.cn-hangzhou.aliyuncs.com/topunix/centos7.5_200m #修改镜像名称
[root@localhost data]# docker push registry.cn-hangzhou.aliyuncs.com/topunix/centos7.5_200m #上传镜像到私有仓库
三、去阿里云镜像仓库查看
文章评论