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.

  • dockerized nginx “times out” after several minutes
  • Run a Docker image as a command line utility in Windows?
  • Ethercalc not launching on Docker and
  • Docker images built successfully but not running
  • Hit a service running on localhost from inside a docker image
  • Dokku on Ubuntu refusing connection
  • 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.

  • Apache Drill in Docker container: Address already in use
  • Configuring wercker.yml to run unit tests in a python app requiring postgres service
  • Using Docker Containers
  • error : curl: (52) Empty reply from server , when ingesting data into druid
  • Can I run a bash script from a file in a separate docker volume before a container starts?
  • How can I set .bash_profile environment variable in Dockerfile?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.