Docker Community Forums

Share and learn in the Docker community.

Minikube vm unable to pull image from insecure registry

Greetings…

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 192.168.99.100:80" and restarted the VM.

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

$ docker pull 192.168.99.100:80/myImg:1.1
Error response from daemon: Get https://192.168.99.100:80/v2/: http: server gave HTTP response to HTTPS client

I further added the file /etc/docker/daemon.json with the following content:
}
“insecure-registry”:[192.168.99.100:80]
{

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

thanks for sharing your insight!

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

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