Docker Community Forums

Share and learn in the Docker community.

Minikube vm unable to pull image from insecure registry


I have a private insecure registry in a docker-machine VM. all working fine until I tried to pull image from inside a minikube VM.

I edited the file /var/lib/boot2docker/profile to contain the line

export EXTRA_ARGS="–insecure-registry" and restarted the VM.

Still, when I try to pull an image, I got the following error:

$ docker pull
Error response from daemon: Get http: server gave HTTP response to HTTPS client

I further added the file /etc/docker/daemon.json with the following content:

Still the above error persists. What could I have missed?

thanks for sharing your insight!

By using the flag “–insecure-registry=’:port’”, at minikube creation time solves the problem.

minikube start --insecure-registry=’:port’