How to config docker registry mirror?

I have learn tutorial from that.I have create docker mirror in this command:

docker run -d -p 5555:5000 -e STORAGE_PATH=/mirror -e STANDALONE=false -e MIRROR_SOURCE= -e MIRROR_SOURCE_INDEX= -v /Users/v11/Documents/docker-mirror:/mirror  --restart=always --name mirror registry

And it succeed. Then I start my docker daemon using this command:

  • Dynamic DNS Resolution with HAProxy and Docker
  • create-react-app + docker = QA and PROD Deploy
  • Dockerhub automated build: BitBucket repository with private submodules
  • How to copy multiple files into a docker data volume
  • Trying to send messages between Docker containers using rabbitmq
  • Can't connect to db docker container
  • docker --insecure-registry --registry-mirror= -d

    Then I use command to pull image like that:

    docker pull hello-world

    Then it throw error in log, and more detail is:

    ERRO[0012] Unable to create endpoint for
    invalid registry endpoint unable to
    ping registry endpoint v2 ping attempt
    failed with error: Get EOF v1 ping
    attempt failed with error: Get
    EOF. If this private registry supports only HTTP or HTTPS with an
    unknown CA certificate, please add --insecure-registry
    to the daemon’s arguments. In the case of HTTPS, if you have access to the registry’s CA certificate, no need for the
    flag; simply place the CA certificate at

    As you can see, it tell me to add ‘–insecure-registry’,But I have added it when I start docker daemon. Anyone have idea about it?

  • mounted directory on host does not work or access docker container
  • How can I extend unregistered docker images or dockerfiles?
  • Can push docker images to Artifactory, but can't pull
  • Docker: connection between golang webapp and postgres server refused
  • Can anyone help me to create Dockerfile for my tomcat copy?
  • How can I make a host directory mount with the container directory's contents?
  • One Solution collect form web for “How to config docker registry mirror?”

    You´re probably using boot2docker?

    Could you try that:

    $ boot2docker init 
    $ boot2docker up 
    $ boot2docker ssh "echo $'EXTRA_ARGS=\"--insecure-registry <YOUR INSECURE HOST>\"' | sudo tee -a /var/lib/boot2docker/profile && sudo /etc/init.d/docker restart"

    Taken from here

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