Docker屏蔽私有镜像的证书

Docker屏蔽私有镜像的证书

/etc/docker/daemon.json

1
2
3
4
5
{
"insecure-registries": [
"https://harbor.skytech.io"
]
}

登陆

1
docker login --username xxx --password xxx harbor.maxzhao.io

配置 /etc/hosts 中的私有地址

1
32.1.14.154 dockerhub.kubekey.local

拉取

1
docker pull harbor.maxzhao.io/xxx/kafka:123

本文地址: https://github.com/maxzhao-it/blog/post/11485435345/