Closed lostrain closed 2 years ago
You can configure this repo as an insecure-registries
in the /etc/docker/daemon.json
.
example:
{
"log-opts": {
"max-size": "5m",
"max-file":"3"
},
"exec-opts": ["native.cgroupdriver=systemd"],
"insecure-registries": ["dockerhub.kubekey.local:5000"]
}
BTW,kubekey v2.0.0 supports custom offline installation packages. There should be no such problems. You can try it. docs: English: https://github.com/kubesphere/kubekey/blob/master/docs/manifest_and_artifact.md Chinese: https://mp.weixin.qq.com/s/hjtNfSRVYH1O2o_dj6ET4A
Thanks, after config "insecure-registries": ["dockerhub.kubekey.local"]
into slaves, it worked!
I have read docs of kk v2.0.0, it's more convenient, next time I will try it.
same problem. i have config all nodes and master "insecure-registries": ["dockerhub.kubekey.local"] but it not work do you know why
**Relevant log output**
ERRO[14:35:23 CST] Failed to download image: dockerhub.kubekey.local/kubesphere/pause:3.4.1: Failed to exec command: sudo env PATH=$PATH docker pull dockerhub.kubekey.local/kubesphere/pause:3.4.1
Error response from daemon: Get "https://dockerhub.kubekey.local/v2/": dial tcp: lookup dockerhub.kubekey.local on 100.100.2.136:53: no such host: Process exited with status 1 node=116.62.177.162
ERRO[14:35:23 CST] Failed to download image: dockerhub.kubekey.local/kubesphere/pause:3.4.1: Failed to exec command: sudo env PATH=$PATH docker pull dockerhub.kubekey.local/kubesphere/pause:3.4.1
Error response from daemon: Get "https://dockerhub.kubekey.local/v2/": dial tcp: lookup dockerhub.kubekey.local on 100.100.2.136:53: no such host: Process exited with status 1 node=120.26.192.149
ERRO[14:35:23 CST] Failed to download image: dockerhub.kubekey.local/kubesphere/pause:3.4.1: Failed to exec command: sudo env PATH=$PATH docker pull dockerhub.kubekey.local/kubesphere/pause:3.4.1
Error response from daemon: Get "https://dockerhub.kubekey.local/v2/": dial tcp: lookup dockerhub.kubekey.local on 100.100.2.136:53: no such host: Process exited with status 1 node=114.55.247.153
ERRO[14:35:23 CST] Failed to download image: dockerhub.kubekey.local/kubesphere/pause:3.4.1: Failed to exec command: sudo env PATH=$PATH docker pull dockerhub.kubekey.local/kubesphere/pause:3.4.1
Error response from daemon: Get "https://dockerhub.kubekey.local/v2/": x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0: Process exited with status 1 node=121.41.226.37
ERRO[14:35:23 CST] Failed to download image: dockerhub.kubekey.local/kubesphere/pause:3.4.1: Failed to exec command: sudo env PATH=$PATH docker pull dockerhub.kubekey.local/kubesphere/pause:3.4.1
Error response from daemon: Get "https://dockerhub.kubekey.local/v2/": dial tcp: lookup dockerhub.kubekey.local: no such host: Process exited with status 1 node=101.37.89.27
ERRO[14:35:23 CST] Failed to download image: dockerhub.kubekey.local/kubesphere/pause:3.4.1: Failed to exec command: sudo env PATH=$PATH docker pull dockerhub.kubekey.local/kubesphere/pause:3.4.1
Error response from daemon: Get "https://dockerhub.kubekey.local/v2/": dial tcp: lookup dockerhub.kubekey.local on 100.100.2.136:53: no such host: Process exited with status 1 node=118.178.91.229
WARN[14:35:23 CST] Task failed ...
WARN[14:35:23 CST] error: interrupted by error
Error: Failed to pre-pull images: interrupted by error
@javaXiaoHan Maybe you need to config /etc/hosts
of your slave nodes, in order to resolve dockerhub.kubekry.local
to your master node.
What is version of KubeKey has the issue?
version.BuildInfo{Version:"1.2.1", GitCommit:"94aa580", GitTreeState:"", GoVersion:"go1.16.12"}
What is your os environment?
CentOS Linux release 7.6.1810 (Core)
KubeKey config file
A clear and concise description of what happend.
I want to deploy kubesphere cluster with 3 vms, and I followed this guide, download binary files and images and has push images to local registry. Then after I run
./kk create cluster -f config-sample.yaml
, it seems that 2 slave nodes auto install docker==20.10.8 and can't pull image from master's registry, which may be caused by docker version. Because I install docker==19.03.12 in master and it can pull image from itself, and 20.10.8 in master doesn't work. My question is, is kk==1.2.1 has bind docker==20.10.8 so it does not support pull image from docker registry? Can I decide which docker version to install in my slaves?Relevant log output
Additional information
No response