Trouble running docker registry in insecure mode on Ubuntu 16.04

I’m trying to run a docker registry in insecure mode on ubuntu 16.04 (docker v1.12.3). I made the changes specified in the documentation.

/etc/default/docker:

  • How to scale out VMs in Azure Container Service Docker?
  • How to run services on startup in docker container
  • Docker postgresql container with external data container
  • How to connect to mysql created by docker-compose
  • docker stop command not working correctly
  • Running build via gitlab ci / docker
  • DOCKER_OPTS="--insecure-registry 10.10.10.10:5000"
    

    and then restarted the docker service. However I’m having no luck. When I try to connect I get

    Error response from daemon: Get https://10.10.10.10:5000/v1/_ping: 
    http: server gave HTTP response to HTTPS client
    

  • Docker with docker-gen variables for folders
  • Supervisord does not show stdout from processes
  • How to use Docker Remote API to build an image using Dockerfile
  • docker configuration: daemon.json to have socket and IP in docker daemon
  • The right way to move a data-only docker container from one machine to another
  • Getting Docker Container Id in Makefile to use in another command
  • One Solution collect form web for “Trouble running docker registry in insecure mode on Ubuntu 16.04”

    Check if this docker/distribution issue could help (when used with docker 1.12):

    • Create or modify /etc/docker/daemon.json
        { "insecure-registries":["myregistry.example.com:5000"] }
    
    • Restart docker daemon
        sudo service docker restart
    

    On Unbuntu 16.04, check also if configuring docker through systemd is better.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.