Failed to pull dockerhub image on Kubernetes

6/4/2019

I'm using minikube for kubernetes deployment and I am getting this error:

Failed to pull image "libsynadmin/libsynmp:core-api-kubernetes-0.9.8.1": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout ?

-- Nishit
docker
kubernetes
minikube

2 Answers

1/1/2020

Are you running behind company proxy then you have to use minikube start command as follows:

minikube start --docker-env HTTP_PROXY=http://$YOURPROXY:PORT \ 
--docker-env HTTPS_PROXY=https://$YOURPROXY:PORT

Ref: minikube issue

-- PavanDevarakonda
Source: StackOverflow

6/4/2019

I think you need to create docker registry cache to pull images from since the error indicate slow internet connection

read more at Docker

-- LinPy
Source: StackOverflow