If docker gives the error “server gave HTTP response to HTTPS client” when starting a container, you can fix it by adding the following configuration:
for never Docker releases, create or update the file /etc/docker/daemon.json as:
{ "insecure-registries":["MY_INSECURE_ADDRESS:5000"] }
Replace MY_INSECURE_ADDRESS with your own address.
for older Docker releases, create or update the file /etc/init.d/docker as:
DOCKER_OPTS=--insecure-registry MY_INSECURE_ADDRESS:5000
Replace MY_INSECURE_ADDRESS with your own address.
Restart the docker service (sudo service docker restart).
Docker container should start now without an error.