-
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 |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
You didn't specify the OS, so I'm going to assume macOS because I already have the snippets for it in my clipboard history. 😄 There is no supported way, but you can ssh into the VM and edit the config file manually to set Example from an already configured VM: $ LIMA_HOME="$HOME/Library/Application Support/rancher-desktop/lima" "/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl" shell 0
lima-rancher-desktop:~# tail -1 /etc/conf.d/docker
DOCKER_OPTS="--insecure-registry=insecure.home:80" You could restart the docker service afterwards, but stoping and restarting Rancher Desktop would be the clean way to make sure everything including kubernetes is restarted correctly. |
Beta Was this translation helpful? Give feedback.
-
In case someone finds this, another possibility instead of modifying $ LIMA_HOME="$HOME/Library/Application Support/rancher-desktop/lima" "/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl" shell 0
Then, create your {
"bip": "192.168.98.5/24",
"insecure-registries" : ["insecure.registry"]
} Don't forget to restart Rancher Desktop to apply these changes! |
Beta Was this translation helpful? Give feedback.
-
EDIT I mistakenly created daemon.js instead of daemon.json. Below is how to access the WSL instance on Windows to add an insecure registry. # You can start an interactive shell
wsl -d rancher-desktop -e /bin/sh
# Or just create the file right away
wsl -d rancher-desktop -e vi /etc/docker/daemon.json Afterwards restart rancher desktop and it should work. If you still have trouble you can try repeating the steps above to create a file at DOCKER_OPTS="--config-file=/etc/docker/daemon.json" Then restarted rancher desktop again Using: |
Beta Was this translation helpful? Give feedback.
-
I am attempting something similar by trying to insecurely expose the docker daemon on tcp://0.0.0.0:2375. (I'm transitioning away from Docker Desktop and some of our build tools are attempting to communicate with the docker deamon over tcp.) I'm using Rancher Desktop (1.0.1) on Windows 10 (10.0.19044 Build 19044) with an Ubuntu (20.04) WSL2 integration. I tried following the more windows-specific advice given by wstr-ncrum. I started the interactive shell to the VM and added an
which should be valid according to Docker's documentation. However my machine is still not listening on port 2375 even after adding
I'm getting lost in the sauce and could really use some help. P.S. I think making the docker daemon more easily configurable would really help Rancher Desktop stand out in the great Docker Desktop migration. |
Beta Was this translation helpful? Give feedback.
-
I am using Mac M1 & rancher desktop
and added
then restart docker daemon inside lima VM using |
Beta Was this translation helpful? Give feedback.
-
none of the above has worked for me on Windows WSL2.
{
"features": {
"containerd-snapshotter": true
},
"experimental": true,
"max-concurrent-downloads": 1,
"max-concurrent-uploads": 1,
"max-download-attempts": 1
}
WSL_HELPER_BINARY="/mnt/c/Program Files/Rancher Desktop/resources/resources/linux/wsl-helper"
DOCKER_OPTS="--config-file=/etc/docker/daemon.json"
LOG_DIR="/mnt/c/Users/me/AppData/Local/rancher-desktop/logs" |
Beta Was this translation helpful? Give feedback.
You didn't specify the OS, so I'm going to assume macOS because I already have the snippets for it in my clipboard history. 😄
There is no supported way, but you can ssh into the VM and edit the config file manually to set
DOCKER_OPTS
.Example from an already configured VM:
You could restart the docker service afterwards, but stoping and restarting Rancher Desktop would be the clean way to make sure everything including kubern…