配置私有的镜像仓库
1. 镜像仓库的基本操作
1.1. 登录镜像仓库
docker login -u <username> -p <password> <registry-addr>1.2. 拉取镜像
docker pull https://registry.xxx.com/dev/nginx:latest1.3. 推送镜像
docker push https://registry.xxx.com/dev/nginx:latest1.4. 重命名镜像
docker tag <old-image> <new-image>2. docker.xxx.com镜像仓库
2.1. 所有节点配置insecure-registries
#cat /etc/docker/daemon.json
{
"data-root": "/data/docker",
"debug": false,
"insecure-registries": [
...
"docker.xxx.com:8080"
],
...
}2.2. 所有节点配置/var/lib/kubelet/config.json
2.3. 创建docker.xxx.com镜像的pod
最后更新于