0

I have an insecure registry running at testcluster.myurl.name:18079

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

However, I already specified the flag (on Ubuntu) in /etc/default/docker my

DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 --insecure-registry testcluster.myurl.name:18079"

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

Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
  • what version of Ubuntu are you running? the `/etc/default/docker` file is only used on systems using "upstart", not on systems using systemd (Ubuntu 15.04 and up) – thaJeztah Apr 09 '16 at 15:53
  • In that case you should follow the instructions for how to use systemd "drop-ins" to configure daemon options. see the documentation here; https://docs.docker.com/engine/admin/systemd/#custom-docker-daemon-options – thaJeztah Apr 09 '16 at 21:36
  • Indeed, you are correct. The login succeeds now. But a push ´sudo docker push testcluster.myurl.name:18079/image:version` fails with x509: certificate signed by unknown authority – Georg Heiler Apr 10 '16 at 07:21
  • Possible duplicate of [Docker daemon flags ignored](https://stackoverflow.com/questions/30127580/docker-daemon-flags-ignored) – Camilo Silva Aug 09 '17 at 15:46

0 Answers0