'modify docker daemon configuration in Rancher Desktop VM

Is there a way to modify docker daemon configuration in Rancher Desktop VM, e.g. adding insecure registries, etc...?

After such modification, I'd like to restart docker daemon for changes to apply. Is there a way to connect to Rancher Desktop VM?

Haven't found anything relevant in https://docs.rancherdesktop.io/faq



Solution 1:[1]

Based on this answer :

  • Log into Lima VM:
LIMA_HOME="$HOME/Library/Application Support/rancher-desktop/lima" "/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl" shell 0
  • Add insecure registry to DOCKER_OPTS at /etc/conf.d/docker file.

So it would look like below:

lima-rancher-desktop:~# tail -1 /etc/conf.d/docker
DOCKER_OPTS="--insecure-registry=insecure.home:80"
  • Restart docker service inside LimaVM or restart Rancher Desktop.

Solution 2:[2]

On Windows to log in to the Rancher Desktop VM, you can do:

wsl -d rancher-desktop -e /bin/sh

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rok
Solution 2 WPWoodJr