modify docker daemon configuration in Rancher Desktop VM

Viewed 616

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

2 Answers

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.

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

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