Search code examples
docker-daemonrancher-desktop

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

  • 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.