Docker version 17.03.0-ce on client machine. I am using registry version 2. The machine runs on Ubuntu 16.04 Xenial.
Steps:
<hostname>:5000/<username>/<repository>:<tag>
docker push <hostname>:5000/<username>/<repository>:<tag>
Three mentions:
{"insecure-registries": ["<hostname>:5000"] }
and executed "sudo /etc/init.d/docker restart"curl http://<hostname>:5000/v2/_catalog
works fine from client
machine.After all these steps, I get the following message:
Get https://<hostname>:5000/v2: http: server gave HTTP response to HTTPS client
I created a file "docker.json" in the path "/etc/docker"
That's not the correct filename, you need to create a file named /etc/docker/daemon.json
. Then rerun the steps you've performed.