This message was deleted.
# rancher-desktop
a
This message was deleted.
k
Which platform and OS version are you running Rancher Desktop on?
b
Rancher Desktop 1.9.1 on macOS 13.4.1 (c)
k
Thanks
b
No problem
k
And is there any specific action that triggers this error message?
b
It's always during a build, but not necessarily at one specific build stage. Sometimes during the final docker tarball/upload, sometimes during an intermediate. Always out of space though
k
Running docker or containerd?
b
Docker
k
ok, thx
b
I don't have an understanding of docker volume internals, but I would guess it is some problem with how the container filesystem volume scales
k
Are you running with kubernetes enabled?
b
No
k
ok...
Are there other unused images present?
Or stale processes (
docker ps -a
)
These might be taking up disk space, and then
docker
deletes them and reclaims the space
b
That's a great question, I had a similar thought process. I run
docker system prune
and it usually fixes the issue, but only temporarily. After 4 or 5 more builds the issue comes up again
So yes, there is some unused stuff, but I really don't think it's enough to use all available disk. I have like 600GB free on my system right now.
f
What is the output of
rdctl shell df -h /var/lib
?
b
There it is
Copy code
Filesystem                Size      Used Available Use% Mounted on
/dev/disk/by-label/data-volume
                         97.9G     92.8G     12.1M 100% /mnt/data
100% use
f
Ok, so the data volume is full. If you don't have too many images, you may try pruning the builder cache with
docker builder prune --all
and see how much space you get back
👍 1
You could also increase the maximum size of the data volume, but you will still need to monitor resource usage
b
That makes sense. Thank you!
f
There is an Extension called
Disk Usage
that you can install in Rancher Desktop that will show you current usage levels in the UI without having to go spelunking inside the VM
Like this (but on an empty volume):
b
Amazing, I will look into that. Thanks!
m
Do you know how you expand the available space for rancher desktop to use?
You must stop Rancher Desktop before attempting to resize the volume; otherwise it may get corrupted.
And don't try to shrink the volume; it will break
m
Excellent! Good to know.
f
Note that the volume is a sparse file (on macOS at least), and will only use up space from the host filesystem for the blocks that are in use. Rancher Desktop calls
fstrim
on startup/shutdown to release unused space back to the host.
So
ls -lh ~/Library/Application\ Support/rancher-desktop/lima/0/diffdisk
will not show the actual disk usage, use
du -h
instead
m
Excellent. I am migration from docker desktop and working out some quirks. Still have a few more to go.