0
点赞
收藏
分享

微信扫一扫

docker仓库的搭建以及使用

哈哈我是你爹呀 2022-08-23 阅读 14

 

 

目录

一、使用aliyun的registry上传下载镜像https://cr.console.aliyun.com/cn-hangzhou/repositories

1.先在阿里云注册一个本地仓库

2.给镜像打上标签

3.在docker上登陆自己的阿里云账号

4.把镜像上传到阿里云

5.查看是否成功

6.删除本地镜像

7.下拉镜像到本地

二、使用registry镜像运行容器上传下载镜像


一、使用aliyun的registry上传下载镜像

https://cr.console.aliyun.com/cn-hangzhou/repositories

 

1.先在阿里云注册一个本地仓库

容器镜像服务 (aliyun.com)icon-default.png?t=M7J4https://cr.console.aliyun.com/cn-hangzhou/instance/repositories

2.给镜像打上标签

3.在docker上登陆自己的阿里云账号

4.把镜像上传到阿里云

5.查看是否成功

 

6.删除本地镜像

7.下拉镜像到本地

二、使用registry镜像运行容器上传下载镜像

1.拉取registry镜像

 

2.启动registry容器

3.打上标签

4.修改/etc/docker/daemon.json配置文件

5.重启docker和 重启容器

需要修改daemon.json 文件的后缀名为daemon.demo 不然会报错,重启后改回来

6.上传镜像

7. 删除镜像

 8.拉取镜像

举报

相关推荐

0 条评论