Hello everyone. I want to add an insecure registry...
# rancher-desktop
h
Hello everyone. I want to add an insecure registry under /etc/docker/daemon.json. But when I restart docker and enter docker info, the insecure registry is not shown. Using Rancher-Desktop Version: 1.14.1 Steps: 1. rdctl shell 2. Modify /etc/docker/daemon.json
Copy code
{
  "insecure-registries": [
    "myregistrydomain.com:5000"
  ]
}
3. sudo service docker restart 4. docker info -> The insecure-registries myregistrydomain.com:5000 is not listed What am I doing wrong? Soloution: I solved this issue after create the file at /etc/default/docker with the content:
DOCKER_OPTS="--config-file=/etc/docker/daemon.json"
Perform
sudo service docker restart
to init the config file.
2
127 Views