https://rancher.com/ logo
Title
b

blue-lock-78400

09/26/2022, 7:37 PM
Hi! I recently got a mac M1 for my work and I would like to be able to configure the insecure registries I use to compose my containers. I managed to do it with Docker Desktop by configuring the ~/.docker/daemon.json file but when I switch to rancher I get an error that the registry is not in the insecure registries list. I checked the messages above but I don’t have the same file architecture as the previous cases. Any idea how to fix the situation?
f

fast-garage-66093

09/26/2022, 8:00 PM
You can edit
/etc/conf.d/docker
inside the VM (while Rancher Desktop is running):
rdctl shell sudo vi /etc/conf.d/docker
Edit the
DOCKER_OPTS
line to define your insecure registry:
DOCKER_OPTS="--insecure-registry=insecure.home:80"
Save the file, and then restart Rancher Desktop. Then the registry should be configured:
$ docker info | grep -A 3 "Insecure Registries"
 Insecure Registries:
  insecure.home:80
  127.0.0.0/8
 Live Restore Enabled: false
You will have to redo the configuration if you do a "Factory Reset" because it will delete the whole VM
b

blue-lock-78400

09/27/2022, 6:48 AM
Worked like a charm ! Thank you very much !