docker insecure registry daemon not using flag

I have an insecure registry running at

a docker login fails with no valid certificate found and suggests to specify the --insecure-registry flag for the daemon.

  • Environment variables in docker when exec docker run
  • Pass environment variables to Dockerfile during build time
  • Photon vmware pros and cons
  • Docker build & deploy on Jenkins takes increasingly long amount of time
  • Docker Error while fetching server API version
  • Alternatives to ssh X11-forwarding for Docker containers
  • However, I already specified the flag (on Ubuntu) in /etc/default/docker

    DOCKER_OPTS="--dns --dns --insecure-registry"

    are set and the daemon was restarted. Still the problem remains.

  • Docker ADD folder during build and then expose to VOLUME
  • Docker Compose LAMP Database connection error
  • Editing Docker container FS using Atom/Sublime-Text?
  • why docker container still can communicate with outside when i shutdown the iptables
  • Cannot run script added to existing docker container
  • How do I disable Transparent Hugepages for Docker for Mac/Windows (Native)
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.