Has anyone had issues with using Rancher Desktop w...
# rancher-desktop
h
Has anyone had issues with using Rancher Desktop with macOS 15.6? Getting this error when trying to run as sudo:
f
Most likely some security software from your company interfering. Are you sure you need to run with admin privs? Most people don't.
h
@fast-garage-66093 We use Microsoft Defender for Endpoint and have CIS L1 deployed
Could it be this particular CIS policy blocking it: The CIS Level 1 macOS 15.0 benchmark recommends securing user home folders by setting specific permissions. This means restricting access to other users and guests, preventing them from browsing or accessing the contents of a user's home directory. This is achieved by setting the permissions to 700, which allows only the owner (the user) to read, write, and execute files within the folder.
f
It looks more like something is preventing you from creating files in
/etc/sudoers.d
, even when running as root.
What is the reason you need to run Rancher Desktop with administrative access? It is only needed to create the docker socket in the default location, and to have a routable IP address for the VM instead of relying on port forwarding to localhost. Most application work just fine with a docker context and don't need the socket in the default location.
h
@fast-garage-66093 Testcontainers requires administrative access in Rancher Desktop to create necessary symlinks, such as for the Docker socket at /var/run/docker.sock, which allows it to interact with the Docker daemon effectively. Without these permissions, Testcontainers may not function properly, leading to connection issues
f
Can't you just set
DOCKER_HOST
?
Copy code
export DOCKER_HOST=unix://$HOME/.rd/docker.sock
h
Get the same errors with or without sudo now
f
That doesn't make sense; the app should not be touching
/etc/sudoers.d
at all unless you have admin access enabled? Maybe do a factory reset?
h
@fast-garage-66093 yes we have local admin rights
g
Hi @fast-garage-66093. My team and I are having this issue. I've tried a factory reset, now I'm getting this error when opening Rancher:
Copy code
'/Users/dianamaftei/Library/Application Support/rancher-desktop/lima/_config/0.yaml'
  ],
  stdout: '',
  stderr: 'time="2025-08-18T11:29:15+02:00" level=info msg="Terminal is not available, proceeding without opening an editor"\n' +
    'time="2025-08-18T11:29:15+02:00" level=info msg="Stopping socket_vmnet daemon for \\"rancher-desktop-shared\\" network"\n' +
    'time="2025-08-18T11:29:15+02:00" level=fatal msg="passwordLessSudo error: failed to run [sudo --user root --group wheel --non-interactive true]: exit status 1"\n',
  code: 1,
  [Symbol(child-process.command)]: '/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl start --tty=false /Users/dianamaftei/Library/Application Support/rancher-desktop/lima/_config/0.yaml'
}
👍 1
f
Please try without using "Admin mode"; something in your config makes it incompatible