docker registry with –insecure-registry and docker 1.5

I have an issue with docker 1.5.

So, I run a private registry at myregistry:5000.
I can push & pull from an other location (debian 7 & docker 1.4) with :

  • How to let a non-root process in a Linux docker container bind to a <1024 port?
  • Jhipster-Logstash does not start correctly
  • Building an Android project from the command line with Docker
  • Docker copy container volume files to host on first run
  • The command '/bin/sh -c sudo pip3 install -r requirements.txt' returned a non-zero code: 1
  • Send a file via SFTP to a Docker Container
  • DOCKER_OPTS="--insecure-registry myregistry:5000"
    

    in /etc/default/docker

    Now, I have a new system with docker 1.5 and debian 8, it’s not working anymore.
    I tried all possibilities like, --insecure-registry=myregistry:5000 or --insecure-registry http://myregistry:5000

    Any clue?

    (Note : It works well if I stop docker and launch docker -d --insecure-registry myregistry:5000 )

  • `docker service update` from remote server with cert
  • Running several apps via docker-compose
  • How to launch an app via Docker on every Pull Request?
  • How to restart Docker-for-mac with command?
  • Getting all open connections within a docker image
  • Host is not running on when I am trying to connect to a docker image
  • 2 Solutions collect form web for “docker registry with –insecure-registry and docker 1.5”

    If it can help anyone,
    I think the problem not coming from Docker, (I tried to update my registry with no success) but from systemd start command.

    So, it’s not a clean solution, but it still cleaner than launching docker in a screen.

    I modify /lib/systemd/system/docker.service
    and change the ExecStart line :

    ExecStart=/usr/bin/docker --insecure-registry myregistry:5000 -d -H fd://
    

    Then, systemctl daemon-reload
    systemctl restart docker

    And that’s it. It works. I can pull & push to my distant private registry.

    I use Docker 1.5 on Ubuntu Utopic 14.10 with own Docker Registry server on 5000 port. Everything works well. There are some additional options in my /etc/default/docker file that probably will make no sense for your situation. Just see how the local registry is enabled:

    DOCKER_OPTS="--debug --log-level=\"debug\" --dns 172.17.42.1 --insecure-registry 172.16.99.67:5000"
    

    Reboot your computer after config changes.

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