1:安装docker-registry包
yum install -y docker-distribution
2:启动docker-distribution,默认监听于TCP/5000端口
systemctl start docker-distribution.service
3:在192.168
{
"insecure-registries":["192.168.43.11:5000"]
}
4:重启docker服务
systemctl restart docker.service
5:给本地镜像添加tag标签,且推送至私有仓库
docker tag docker.io/busybox:latest 192.168
docker push 192.168
6:把本地的192.168