# docker pull kubeimage/kube-apiserver:v1.15.0
Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 17.15.75.8:53: no such host
vi /usr/lib/systemd/system/docker.service
with below entries
[Service]
Environment=HTTP_PROXY=http://8.8.8.8:8888
Environment=HTTPS_PROXY=http://8.8.8.8:8888
systemctl daemon-reload
systemctl restart docker
# kubeadm config images pull --v=10
I1031 22:12:20.527118 22397 version.go:187] fetching Kubernetes version from URL: https://dl.k8s.io/release/stable-1.txt exit status 1 output: E1031 22:12:20.843791 22419 remote_image.go:242] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image \"registry.k8s.io/kube-apiserver:v1.25.3\": failed to resolve reference \"registry.k8s.io/kube-apiserver:v1.25.3\": failed to do request: Head \"https://registry.k8s.io/v2/kube-apiserver/manifests/v1.25.3\": dial tcp: lookup registry.k8s.io on 137.15.210.9:53: no such host" image="registry.k8s.io/kube-apiserver:v1.25.3" time="2022-10-31T22:12:20-04:00" level=fatal msg="pulling image: rpc error: code = Unknown desc = failed to pull and unpack image \"registry.k8s.io/kube-apiserver:v1.25.3\": failed to resolve reference \"registry.k8s.io/kube-apiserver:v1.25.3\": failed to do request: Head \"https://registry.k8s.io/v2/kube-apiserver/manifests/v1.25.3\": dial tcp: lookup registry.k8s.io on 137.15.210.9:53: no such host" , error
Add below entries into
/usr/lib/systemd/system/containerd.service under section [Service][Service]
Environment=HTTP_PROXY=http://8.8.8.8:8888
Environment=HTTPS_PROXY=http://8.8.8.8:8888
systemctl daemon-reload
systemctl restart containerd