https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
w

witty-honey-18052

01/13/2023, 5:34 PM
is anyone running multiple WSL instances successfully? I'm getting
Copy code
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "<http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json>": dial unix /var/run/docker.sock: connect: permission denied
on a new, second instance, and i'm fairly certain i'm doing everything properly. not sure if there's an extra step to take other than checking the box for the instance and allowing RD to restart
c

calm-sugar-3169

01/13/2023, 5:58 PM
Hi @witty-honey-18052 by “running multiple WSL instances” do you mean running another distro along with Rancher Desktop in your WSL?
w

wide-mechanic-33041

01/13/2023, 6:04 PM
yup feels like
docker context
use case
w

witty-honey-18052

01/13/2023, 6:05 PM
image.png
instance "Ubuntu" works
instance "Ubuntu 22.04" has the error mentioned
makes it seems like I should be able to do
docker ps
in both, right?
c

calm-sugar-3169

01/13/2023, 6:10 PM
yeah, as @wide-mechanic-33041 mentioned above it looks like the context may not be set correctly in Ubuntu 22.04
w

witty-honey-18052

01/13/2023, 9:19 PM
Do I need to do anything there? both instances are showing the same information for
docker context list
Copy code
NAME        DESCRIPTION                               DOCKER ENDPOINT               KUBERNETES ENDPOINT                    ORCHESTRATOR
default *   Current DOCKER_HOST based configuration   unix:///var/run/docker.sock   <https://172.19.218.24:6443> (default)   swarm
c

calm-sugar-3169

01/13/2023, 9:29 PM
One thing to note, is the user in the
docker
group?
Because we make a socket there, but unless the user is in the
docker
group, they need to be root (in the distro)
w

witty-honey-18052

01/13/2023, 9:31 PM
ah snap, that's probably it
24 Views