Page MenuHomeVyOS Platform

containers storage doesn't cleanup
Closed, WontfixPublicBUG

Description

The current containers storage located in /config/containers/storage/
It copies the images between updates, but it can't properly clean up the old data/garbage, even when the old VyOS images were deleted.

24K	/config/containers/storage/vfs/dir/ce6df2d4d10331a0e4dd12f663389e43e2b18fa48d695ec74af52af93ba8abf9/usr/share/GConf/gsettings
28K	/config/containers/storage/vfs/dir/ce6df2d4d10331a0e4dd12f663389e43e2b18fa48d695ec74af52af93ba8abf9/usr/share/GConf
1.1G	/config/containers/storage/vfs/dir/ce6df2d4d10331a0e4dd12f663389e43e2b18fa48d695ec74af52af93ba8abf9
6.5G	/config/containers/storage/vfs/dir
6.5G	/config/containers/storage/vfs
vyos@r11-roll:~$ 
vyos@r11-roll:~$ 
vyos@r11-roll:~$ sudo podman image ls --all
REPOSITORY  TAG     IMAGE ID  CREATED  SIZE
vyos@r11-roll:~$ 
vyos@r11-roll:~$ sudo podman image rm --all
vyos@r11-roll:~$ 
vyos@r11-roll:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G     0  2.0G   0% /dev
tmpfs           395M  1.5M  393M   1% /run
/dev/vda1       7.8G  7.3G   62M 100% /usr/lib/live/mount/persistence
/dev/loop0      408M  408M     0 100% /usr/lib/live/mount/rootfs/1.4-rolling-202111150317.squashfs
tmpfs           2.0G     0  2.0G   0% /usr/lib/live/mount/overlay
overlay         7.8G  7.3G   62M 100% /

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202111150317
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to In progress.May 8 2022, 5:20 PM
c-po claimed this task.

It copies the images between updates, but it can't properly clean up the old data/garbage, even when the old VyOS images were deleted.

So this is "intended" as there is a parallel overlay storage used for all container images that are referenced between all images (single source).
If an image is deleted - the container image remains.

Container images must be handled explicitly:

vyos@vyos:~$ show container image
REPOSITORY                    TAG         IMAGE ID      CREATED      SIZE
docker.io/jacobalberty/unifi  v7.2        dae6cb6f61e7  7 weeks ago  723 MB
vyos@vyos:~$ delete container image
Possible completions:
  dae6cb6f61e7          Delete container image

Closing as "wontfix"

c-po triaged this task as Low priority.