https://rancher.com/ logo
Title
b

brainy-beard-29881

05/11/2023, 3:50 PM
I am running Rancher Desktop v1.8.1 on Mac Big Sur. I can't start Rancher due to 'No space left on device' error. When I start Rancher desktop, it doesn't start any containers.
stderr: 'scp: /tmp/rd-nerdctl-maUYHq.nerdctl: No space left on device\n',
  code: 1,
  command: [
    '/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>',
    'copy',
    '/var/folders/w5/zd3mhbp553l27m7djjd450ph0000gn/T/rd-nerdctl-maUYHq/nerdctl',
    '0:/tmp/rd-nerdctl-maUYHq.nerdctl'
  ]
}
Any idea why?
Filesystem       Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk1s1s1  466Gi   14Gi  137Gi    10%  553797 4881899083    0%   /
devfs           190Ki  190Ki    0Bi   100%     658          0  100%   /dev
/dev/disk1s5    466Gi   24Ki  137Gi     1%       0 4882452880    0%   /System/Volumes/VM
/dev/disk1s3    466Gi  734Mi  137Gi     1%    2864 4882450016    0%   /System/Volumes/Preboot
/dev/disk1s6    466Gi  5.4Mi  137Gi     1%      15 4882452865    0%   /System/Volumes/Update
/dev/disk1s2    466Gi  312Gi  137Gi    70% 1030785 4881422095    0%   /System/Volumes/Data
map auto_home     0Bi    0Bi    0Bi   100%       0          0  100%   /System/Volumes/Data/home
f

fast-garage-66093

05/11/2023, 3:55 PM
Have you been using Rancher Desktop before, and it just start throwing this error? Maybe you ran out of space inside the VM by creating/pulling lots of images and never pruning out the ones no longer used?
If (and only if) this is your problem, you can try to increase the size of the volume a bit, to allow Rancher Desktop to start again, but then you must remove old/unused images, or you will run into the same issue again soon:
/Applications/Rancher\ <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/qemu-img|Desktop.app/Contents/Resources/resources/darwin/lima/bin/qemu-img> resize "$HOME/Library/Application Support/rancher-desktop/lima/0/diffdisk" +10G
This is a single command you have to run from the terminal.
Alternatively, if you don't care about preserving your existing images, you can do a factory reset from the commandline:
rdctl factory-reset
It will remove the existing volume and all your settings
b

brainy-beard-29881

05/11/2023, 4:29 PM
Resizing the images allows Rancher Desktop to start
2023-05-11T16:22:26.904Z: CLI server is now ready.
2023-05-11T16:22:26.913Z: Credentials server is now ready.
But the docker daemon was not started. I did an update today. In previous version, starting rancher desktop automatically starts docker (I disabled kubernetes).
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
f

fast-garage-66093

05/11/2023, 4:32 PM
Check the docker log to see if there are any errors:
rdctl shell cat /var/log/docker.log
b

brainy-beard-29881

05/11/2023, 4:47 PM
cat: can't open '/var/log/docker.log': No such file or directory
f

fast-garage-66093

05/11/2023, 4:48 PM
Are you using
moby
or
containerd
?
b

brainy-beard-29881

05/11/2023, 4:48 PM
containerd
f

fast-garage-66093

05/11/2023, 4:49 PM
Ok, then the docker socket doesn't exist and the daemon isn't running. Where do you get the error message about not being able to connect to docker?
b

brainy-beard-29881

05/11/2023, 4:50 PM
I just ran a
docker ps
on the terminal. In previous version of rancher desktop, it works
f

fast-garage-66093

05/11/2023, 4:51 PM
That doesn't sound correct; you would have to run
nerdctl ps
if you are using
containerd
b

brainy-beard-29881

05/11/2023, 4:52 PM
my bad, I was probably using moby
f

fast-garage-66093

05/11/2023, 4:57 PM
Ok, assuming things work for you again, please make sure you do
docker image prune
or similar to reclaim some space inside the VM volume
You can check the available space on the data volume with
$ rdctl shell df -h /mnt/data
Filesystem                Size      Used Available Use% Mounted on
/dev/disk/by-label/data-volume
                         97.9G      2.1G     90.7G   2% /mnt/data
b

brainy-beard-29881

05/11/2023, 5:05 PM
Thanks! Yes, I did the system prune all but didn't reclaim any space. I will have to look at my images/containers