This message was deleted.
# rancher-desktop
a
This message was deleted.
h
Here's before and after with doing nothing in between. The dotnet images are gone.
Copy code
> docker images
REPOSITORY                                          TAG                             IMAGE ID       CREATED              SIZE
my-co-aspdotnet                                     7.0-bullseye-slim-arm64v8       c4e3e78c4de1   About a minute ago   234MB
my-co-aspdotnet                                     7.0.8-bullseye-slim-arm64v8     c4e3e78c4de1   About a minute ago   234MB
my-co-dotnet-sdk                                    7.0-bullseye-slim-arm64v8       09663eae40e4   2 minutes ago        825MB
my-co-dotnet-sdk                                    7.0.304-bullseye-slim-arm64v8   09663eae40e4   2 minutes ago        825MB
nginxdemos/hello                                    latest                          93f88ab0ab28   2 weeks ago          45.7MB
bitnami/kafka                                       3.4                             c27c649f65ef   7 weeks ago          516MB
rancher/klipper-lb                                  v0.4.3                          1c3d6ab0f26a   2 months ago         9.45MB
rancher/klipper-helm                                v0.7.7-build20230403            48957d5c01a7   2 months ago         247MB
rancher/local-path-provisioner                      v0.0.24                         10ada9a7f8ab   3 months ago         40.3MB
rancher/mirrored-coredns-coredns                    1.10.1                          97e04611ad43   4 months ago         51.4MB
rancher/mirrored-library-busybox                    1.34.1                          9bf1b624e59d   6 months ago         3.73MB
rancher/mirrored-metrics-server                     v0.6.2                          ea7b05ebc8e8   7 months ago         67.7MB
rancher/mirrored-library-traefik                    2.9.4                           28a9c4decb28   7 months ago         131MB
<http://my-co.azurecr.io/redis-tls|my-co.azurecr.io/redis-tls>                          latest                          533db8c041b9   11 months ago        90.6MB
<http://mcr.microsoft.com/azure-sql-edge|mcr.microsoft.com/azure-sql-edge>                    latest                          c0db2d0e0637   12 months ago        1.83GB
rancher/mirrored-pause                              3.6                             7d46a07936af   22 months ago        484kB
<http://registry.k8s.io/pause|registry.k8s.io/pause>                               3.6                             7d46a07936af   22 months ago        484kB
vimagick/json-server                                latest                          0ee35b48602f   2 years ago          71.6MB
<http://ghcr.io/rancher-sandbox/rancher-desktop/rdx-proxy|ghcr.io/rancher-sandbox/rancher-desktop/rdx-proxy>   latest                          60db50af7694   292 years ago        4.78MB
 
WAIT 10m

> docker images
REPOSITORY                         TAG                    IMAGE ID       CREATED         SIZE
nginxdemos/hello                   latest                 93f88ab0ab28   2 weeks ago     45.7MB
bitnami/kafka                      3.4                    c27c649f65ef   7 weeks ago     516MB
rancher/klipper-lb                 v0.4.3                 1c3d6ab0f26a   2 months ago    9.45MB
rancher/klipper-helm               v0.7.7-build20230403   48957d5c01a7   2 months ago    247MB
rancher/local-path-provisioner     v0.0.24                10ada9a7f8ab   3 months ago    40.3MB
rancher/mirrored-coredns-coredns   1.10.1                 97e04611ad43   4 months ago    51.4MB
rancher/mirrored-metrics-server    v0.6.2                 ea7b05ebc8e8   7 months ago    67.7MB
rancher/mirrored-library-traefik   2.9.4                  28a9c4decb28   7 months ago    131MB
<http://my-co.azurecr.io/redis-tls|my-co.azurecr.io/redis-tls>         latest                 533db8c041b9   11 months ago   90.6MB
<http://mcr.microsoft.com/azure-sql-edge|mcr.microsoft.com/azure-sql-edge>   latest                 c0db2d0e0637   12 months ago   1.83GB
<http://registry.k8s.io/pause|registry.k8s.io/pause>              3.6                    7d46a07936af   22 months ago   484kB
rancher/mirrored-pause             3.6                    7d46a07936af   22 months ago   484kB
vimagick/json-server               latest                 0ee35b48602f   2 years ago     71.6MB
k
Shouldn't be. Could you check the logs?
h
There are many. Which one and what should I look for? I searched for
rmi
and
aspdotnet
(image name) and didn't get anything.
k
I would have done the same. If you rebuild the images does it happen again?
... because I'm not aware of anything in the code that deletes images except for the explicit
delete image
functionality, and resetting Kubernetes
f
Kubernetes is checking every 5 minutes to see if you are using more than 80% of the disk space (inside the VM) and will start deleting images in least recently used order. These can very well be images that you just build, that have not been loaded into a pod yet.
I would look into deleting dangling images and pruning the build cache
h
Thanks @fast-garage-66093 that tracks with what I'm seeing. So I'm not crazy.
f
If you are using 1.9.1 then you can use the "Disk Usage" extension to get a view of how the space is being used. You'll have to clean up space from the CLI though; there is no mechanism built into Rancher Desktop for this yet
The default maximum disk size is 100GB. You can increase it manually, but you will still run out of space unless you prune things regularly.
h
docker system prune
freed up 63G.
f
Good, that should fix your problem for now. Just keep an eye on it for the future.
h
I usually prune once in a while, but haven't seen the images disappear. I just installed the disk extension in 1.9.0 -- Pretty cool. You guys are doing a great job. I keep getting more of our devs on RD from podman since RD runs so much better and way faster.
f
Thanks for the feedback! Let us know if you run into things that we can improve! (Although we already have a long list ourselves)
👍 1
q
You're the second person to complain about the pruning thing recently and I'd never seen complaints in previous versions. So I feel like something's changed
f
I don't think there are any relevant changes in RD itself. Maybe newer versions of buildkit keep a larger build cache?
q
Possibly? How hard is it to ask the docker system for the parameters from the two versions?
(I build one image atm and use a handful of images for act/check-spelling and I don't use k8s in RD, so I'm not tripping on this, and most of my coworkers aren't building locally and most don't use k8s, although I think a couple do occasionally)