Docker Community Forums

Share and learn in the Docker community.

What is difference concerning the following methods to configure insecure-registries?

docker
insecure-registry

#1
  • First method, create /etc/docker/daemon.json in which you declare your registries:
{
  "insecure-registries" : ["myregistrydomain.com:5000"]
}
  • Second method, using systemctl edit docker and override it
[Service]
    ExecStart=
    ExecStart=/usr/bin/docker daemon -H  fd:// --insecure-registry  ffw.docker.domain.net

where it is necessary to clear out ExecStart using ExecStart= before setting it to the override value.

Thanks!