docker设置http访问
1 编辑配置文件
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://a4fyjv0u.mirror.aliyuncs.com"],
"insecure-registries": [
"192.168.33.70"
]
}
其中ip地址为本地搭建的harbor镜像源地址
2 重启docker
systemctl restart docker
3 harbor建立项目
4 本地推送到hello去
docker tag 0d120b6ccaa8 192.168.33.70/hello/centos:1.0
docker push 192.168.33.70/hello/centos:1.0
docker rmi 192.168.33.70/hello/centos:1.0
docker pull 192.168.33.70/hello/centos:1.0