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

  • 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
    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.