Hallo again,
I just purged the whole storage using podman system reset.
I verified that ~/.local/share/containers became empty
(only bolt database was still remaining using about 200Mb space)
I have run 2 containers from docker.io: ibmcom/db2 and ibmcom/db2console.
podman system df reports space usage by images 4Gb and by containers 6Mb.
podman images command shows consistent values (two images, 2.83Gb + 1.21Gb)
system df command shows that 32Gb is used on ~/.local/share/containers filesystem
du shows that all this space is located under ~/.local/share/containers/storage/vfs/dir
This directory contains 32 subdirs, 11 subdirs of 1.1Gb each, 6 subdirs of 2.6Gb each,
rest subdirs take anywhere from 94Mb to 646Mb
When I try to diff -rw for directories of same size, I see only reports for missing
symlink files, but never real file differences.
No real activity was performed with podman apart from running these two containers.
I am running podman 4.3.1 on debian bookworm (kernel 6.0.8) What is wrong? Best regards, --
On 23.12.2022 19:43, Михаил Иванов wrote:
Hallo,
I notice some disk space discrepancy when running rootless podman containers.
I use dedicated fs for podman storage mountrd to ~/.local/share/containers.
df and du show consistent used disk space:
  island:named [master]> df -h ~/.local/share/containers
  /dev/mapper/sys-containers   117G          84G   32G           73% ~/.local/share/containers

  island:named [master]> sudo du -sh ~/.local/share/containers/storage/{vfs,volumes}
  74G    /home/ivans/.local/share/containers/storage/vfs
  11G    /home/ivans/.local/share/containers/storage/volumes
  island:named [master]> 
But space usage shown by podman system df is about 44% less than reported above:

  island:named [master]> podman system df
  TYPE           TOTAL       ACTIVE      SIZE        RECLAIMABLE
  Images         32          5           39.49GB     25.96GB (66%)
  Containers     7           7           1.85GB      0B (0%)
  Local Volumes  2           2           10.83GB     0B (0%)

Volume space is practically same, it's vfs space (where as I understand images
and containers are located) that differs.
I also run buildah as same user, but buildah ls shows nothing.
I have ran podman system prune, but it reclaimed 0 bytes.
So is this extra space usage expected? Or is it sthing wrong with my storage?
Thanks and regards,
-- 
Michael Ivanov

_______________________________________________
Podman mailing list -- podman@lists.podman.io
To unsubscribe send an email to podman-leave@lists.podman.io