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

clean-pager-20838

06/14/2022, 11:40 PM
trying to install rancher-desktop. i do not want the "sudo" access feature. i.e. i'd prefer to not use /var/run/docker.socket. but i don't see an option for that. is that what would happen if I unselect the "sudo" option? or it will just not set up the socket and assume it is set up?
i tried to edit lima.yaml and change the socket option, but on restart it just added a new set of sockets with the /var/run/docker.socket back...
Copy code
portForwards:
  - guestPortRange:
      - 1
      - 65535
    guestIPMustBeZero: true
    hostIP: 0.0.0.0
  - guestSocket: /var/run/docker.sock
    hostSocket: /home/gabriel/.rd/docker.sock
  - guestSocket: /var/run/rancher.sock
    hostSocket: /home/gabriel/.rd/rancher.sock
i see that using the "sudo" option and selecting MOBY does create a context. didn't get that with containerd...
Copy code
rancher-desktop *   Rancher Desktop moby context              unix:///home/gabriel/.rd/docker.sock   <https://127.0.0.1:6443> (default)
p

proud-jewelry-46860

06/15/2022, 12:58 AM
Hmm, Rancher Desktop should (ask you about it before asking for your password, with a checkbox to say never ask for the password (and run without sudo). Which version are you using?
c

clean-pager-20838

06/15/2022, 12:59 AM
latest as of now (1.4.1). i do see the checkbox. but i have no idea what will happen if I check that box
after a few factory resets and different settings, i did get the context only if using moby.
p

proud-jewelry-46860

06/15/2022, 1:01 AM
Sounds like we need to phrase that better. I'm on mac, but it should be the same:
c

clean-pager-20838

06/15/2022, 1:02 AM
on linux, i got a different message. didn't mention context
p

proud-jewelry-46860

06/15/2022, 1:02 AM
Yeah, currently with nerdctl we actually run the command inside our VM (because it needs access to disks and things internally, so we can't just expose a socket the way we do with docker)
👍 1
c

clean-pager-20838

06/15/2022, 1:02 AM
[the description on your image] was what i wanted :) i will keep the working setup for now. but as soon as i have some time i will try moby+non-sudo
thanks for the help on this. for future reference, if i try to do the setup i wanted, anyone know where it is documented the manual socket/context setup? do i have to create the context too?
p

proud-jewelry-46860

06/15/2022, 1:06 AM
No, the context is created for you; the hope was that the big paragraph in the screenshot was enough. But obviously it's a bit lacking 😄
Took way too long to get this, but this is the corresponding Linux screen shot:
(I realize it looks exactly the same)
f

fast-garage-66093

06/15/2022, 4:54 PM
You should only ever get the dialog on Linux when using docker. I don't think there is any need to use sudo with containerd/nerdctl at all. (It does run as
root
, but only inside the VM, so doesn't need
root
on the host)
c

clean-pager-20838

06/15/2022, 6:02 PM
did get the dialog again, using nerdctl (enabled
always run without admin access
this time). i guess since now i have the context showing up, things work fine regardless.
f

fast-garage-66093

06/15/2022, 7:08 PM
The context is only used by moby/docker, so I don't understand why you would get the dialog
c

clean-pager-20838

06/15/2022, 9:20 PM
hum.. i did mess around with my yaml files a lot but i did try to clean them all and factory reset to the best of my abilities. i got it when i turned the computer on and started docker-desktop again. never run anything as sudo (besides that one time i did gave it my password for the admin feature) i restarted it a few times now. seems my UI is weird. i always get the dialog, even after checking the "always run..." only thing that prevented the dialog on startups was to unselect "Allow sudo access" on the "Application settings" tab
175 Views