配置docker的私有仓库

1:安装docker-registry包
yum install -y docker-distribution
 
2:启动docker-distribution,默认监听于TCP/5000端口
systemctl start docker-distribution.service
 
3:在192.168.43.10的docker-server节点上,编辑/etc/docker/daemon.json配置文件添加:
{
"insecure-registries":["192.168.43.11:5000"]
}
 
4:重启docker服务
systemctl restart docker.service
 
5:给本地镜像添加tag标签,且推送至私有仓库
docker tag docker.io/busybox:latest 192.168.43.11:5000/busybox:yhy
docker push 192.168.43.11:5000/busybox:yhy
 
6:把本地的192.168.43.11:5000/busybox镜像删除,再从192.168.43.11:5000pull镜像
posted @ 2017-11-01 21:48  ~小学生~  阅读(407)  评论(0编辑  收藏  举报