Open timacro opened 1 year ago
The file must be created inside the rancher-desktop
distro, at /etc/docker/daemon.json
.
You can run rdctl shell
to run a shell inside the distro.
You should be able to copy the file over with cp /mnt/c/myaccount/.docker/daemon.json /etc/docker
.
I'm not sure if you have to make sure the file has Linux line-endings or not.
You will need to stop and re-start Rancher Desktop for the change to take effect, and it will be lost if you ever do a Factory Reset.
hi: do not use docker' daemon.json. u should in wsl'rancher-desktop to setup registry configure file.
i use cellphone now, so can not give u an accurate answer, the configure file maybe is /var/lib/rancher/k3s/…/registry.yaml. it should like : mirrors: "node1:30001": ……
Hey, i'm also trying to setup a docker.io mirror in Rancher Desktop and i'm facing the same issue. I tried to follow @jandubois steps but doing so does not seem to have any effect.
I also tried the approach described in this issue of adding a script to the override.yaml to create a registry.yaml but wasn't successful with this one either.
Any other ideas to get a mirror running?
Details: Rancher Desktop Version: 1.7.0 Kubernetes Version: v1.25.4 OS: MacOs 13.1 on a M1 ARM
When using an older version of docker(such as 1.13), dockerd seems ignore the registry-mirrors parameter in daemon.json, you should add --registry-mirror as command line arg instead. /usr/bin/dockerd --registry-mirror https://foo.bar
Problem Description
In order to use a custom registry, I created a daemon.json file at
C:\Users\myaccount\.docker
on my Windows 11 and added the registry-mirrors as follows:But it doesn't work. By executing
docker info
I got this message which has no field of registry-mirrors:Any idea ?
Proposed Solution
Any possible solution.
Additional Information
No response