Document clean up approaches (docker system prune) #800

Open
opened 2026-03-21 12:50:52 +00:00 by jeppebundsgaard · 2 comments

I have a number of unused images and volumes on my server's docker swarm. They seem to stem from updating recipies, or they are from apps I installed, and then removed. They are gone from the local abra-folders, but (some) images and volumes are still there.
Is there an abra command to clean up, or do I need to do something at the server? Could someone point me in a direction of what to do?

This is output from docker system df -v

Images space usage:

REPOSITORY TAG IMAGE ID CREATED SIZE SHARED SIZE UNIQUE SIZE CONTAINERS
codeberg.org/klasse-methode/lauti latest 2d25975d9716 3 days ago 110MB 9.105MB 101.2MB 1
codeberg.org/klasse-methode/lauti nightly 964f4ce36c4b 3 days ago 110MB 9.105MB 101.2MB 0
bonfirenetworks/bonfire latest-social-amd64 9a4fa70f35ad 3 days ago 3.46GB 9.105MB 3.452GB 4
ghcr.io/baosystems/postgis 17-3.5 a17d4e9aa7f8 4 days ago 889MB 454.7MB 434.7MB 2
mariadb 11.4 92e8bf4bf339 4 days ago 462MB 352.3MB 109.9MB 1
mariadb 11.4 5559e323266d 4 days ago 462MB 352.3MB 109.9MB 1
postgres 15.17 c635fa3e3b74 4 days ago 633MB 0B 632.8MB 0
ghcr.io/baosystems/postgis 17-3.5 eed2cd3808f8 8 days ago 889MB 454.7MB 434.7MB 1
codeberg.org/klasse-methode/lauti nightly bd82e0fe7b59 2 weeks ago 110MB 9.105MB 101.1MB 0
listmonk/listmonk nightly 90b2b4a33c86 2 weeks ago 49.4MB 9.105MB 40.26MB 4
ghcr.io/baosystems/postgis 17-3.5 a0b4560c2e46 2 weeks ago 889MB 454.7MB 434.7MB 0
codeberg.org/klasse-methode/lauti nightly ca4bbf68bd3c 2 weeks ago 110MB 9.105MB 101MB 0
pgautoupgrade/pgautoupgrade 17-debian e9a585e5a10b 3 weeks ago 998MB 87.43MB 910.5MB 1
postgres 15-alpine fceb6f86328c 3 weeks ago 392MB 9.105MB 383.2MB 0
postgres 18 55586516b2fd 3 weeks ago 649MB 481.1MB 168.3MB 1
postgres 18 69e8582b781c 3 weeks ago 649MB 481.1MB 168.3MB 1
redis 8.0 0035b78bfd0c 3 weeks ago 191MB 0B 190.6MB 1
postgres 18 9b5bd946f3a5 3 weeks ago 649MB 87.43MB 562MB 0
ghcr.io/baosystems/postgis 17-3.5 3b9255fd8454 3 weeks ago 889MB 454.7MB 434.7MB 0
codeberg.org/klasse-methode/lauti nightly a929b859d1d9 4 weeks ago 108MB 8.991MB 98.55MB 0
mariadb 11.4 2f45480c9cac 4 weeks ago 462MB 0B 462.1MB 0
codeberg.org/klasse-methode/lauti nightly 0fb44884cc91 4 weeks ago 108MB 8.991MB 98.55MB 0
codeberg.org/klasse-methode/lauti nightly 8621abd680a5 5 weeks ago 107MB 8.991MB 97.68MB 0
codeberg.org/klasse-methode/lauti nightly 8b983049f4ca 5 weeks ago 106MB 8.991MB 97.48MB 0
codeberg.org/klasse-methode/lauti nightly 003e571f4d92 5 weeks ago 106MB 8.991MB 97.48MB 0
nginx 1.29.4 9dd288848f44 6 weeks ago 240MB 0B 239.6MB 5
redis 8.4.0-alpine 4eec4565e45a 7 weeks ago 131MB 0B 130.6MB 2
bonfirenetworks/bonfire latest-social-amd64 9c824fc42cb0 2 months ago 1.95GB 8.991MB 1.944GB 0
nextcloud 32.0.3-fpm c21c27e6d271 2 months ago 2.08GB 0B 2.077GB 2
listmonk/listmonk v6.0.0 bf3903d54a46 2 months ago 49.2MB 9.105MB 40.08MB 0
ghcr.io/baosystems/postgis 17-3.5 378439647f8b 2 months ago 889MB 454.7MB 434.5MB 0
lscr.io/linuxserver/socket-proxy 3.2.10-r0-ls65 687b9ff41af1 3 months ago 23.1MB 8.991MB 14.11MB 2
traefik v3.6.5 67622638cd88 3 months ago 241MB 9.105MB 231.6MB 2
traefik v3.6.2 aaf0f6185419 4 months ago 240MB 8.991MB 231.5MB 0
lscr.io/linuxserver/socket-proxy 3.2.8-r0-ls61 79c8b71b52ed 4 months ago 23.1MB 8.991MB 14.1MB 0
mariadb 11.4 e623ab8d513e 4 months ago 462MB 0B 462.1MB 0
bonfirenetworks/bonfire latest-social-amd64 4de7be54026a 4 months ago 1.71GB 8.991MB 1.705GB 0
loomio/loomio_channel_server latest 173654ee4bb6 4 months ago 1.89GB 0B 1.891GB 1
codeberg.org/klasse-methode/lauti 1.1.1 0e8c99e74a9f 5 months ago 103MB 0B 102.7MB 0
hello-world latest d4aaab6242e0 7 months ago 25.9kB 0B 25.9kB 1
nginx 1.29.0 3ab4ed065a14 8 months ago 282MB 0B 282.1MB 0
loomio/loomio v3.0.0 80b45776df19 8 months ago 3.27GB 0B 3.274GB 7
nextcloud 31.0.6-fpm 85b223e81f87 9 months ago 2.02GB 0B 2.019GB 0
redis 8.0.2-alpine 48501c5ad00d 9 months ago 87.4MB 0B 87.41MB 0
getmeili/meilisearch v1.14 8cd411ba5d9e 11 months ago 241MB 0B 241.4MB 3
dessalines/lemmy 0.18.3 ed33ded51630 2 years ago 244MB 8.016MB 236.3MB 0
dessalines/lemmy-ui 0.18.3 b8d37e0be147 2 years ago 786MB 8.016MB 778.5MB 0
asonix/pictrs 0.4.0-beta.19 480d36cd97e5 3 years ago 392MB 0B 392.2MB 0
nginx 1.20.0 ea4560b87ff0 4 years ago 200MB 0B 200.2MB 0

For example nextcloud version 31.0.6-fpm and lauti nightly are no longer in use.

Thanks!

I have a number of unused images and volumes on my server's docker swarm. They seem to stem from updating recipies, or they are from apps I installed, and then removed. They are gone from the local abra-folders, but (some) images and volumes are still there. Is there an abra command to clean up, or do I need to do something at the server? Could someone point me in a direction of what to do? This is output from `docker system df -v` > Images space usage: > > REPOSITORY TAG IMAGE ID CREATED SIZE SHARED SIZE UNIQUE SIZE CONTAINERS > codeberg.org/klasse-methode/lauti latest 2d25975d9716 3 days ago 110MB 9.105MB 101.2MB 1 > codeberg.org/klasse-methode/lauti nightly 964f4ce36c4b 3 days ago 110MB 9.105MB 101.2MB 0 > bonfirenetworks/bonfire latest-social-amd64 9a4fa70f35ad 3 days ago 3.46GB 9.105MB 3.452GB 4 > ghcr.io/baosystems/postgis 17-3.5 a17d4e9aa7f8 4 days ago 889MB 454.7MB 434.7MB 2 > mariadb 11.4 92e8bf4bf339 4 days ago 462MB 352.3MB 109.9MB 1 > mariadb 11.4 5559e323266d 4 days ago 462MB 352.3MB 109.9MB 1 > postgres 15.17 c635fa3e3b74 4 days ago 633MB 0B 632.8MB 0 > ghcr.io/baosystems/postgis 17-3.5 eed2cd3808f8 8 days ago 889MB 454.7MB 434.7MB 1 > codeberg.org/klasse-methode/lauti nightly bd82e0fe7b59 2 weeks ago 110MB 9.105MB 101.1MB 0 > listmonk/listmonk nightly 90b2b4a33c86 2 weeks ago 49.4MB 9.105MB 40.26MB 4 > ghcr.io/baosystems/postgis 17-3.5 a0b4560c2e46 2 weeks ago 889MB 454.7MB 434.7MB 0 > codeberg.org/klasse-methode/lauti nightly ca4bbf68bd3c 2 weeks ago 110MB 9.105MB 101MB 0 > pgautoupgrade/pgautoupgrade 17-debian e9a585e5a10b 3 weeks ago 998MB 87.43MB 910.5MB 1 > postgres 15-alpine fceb6f86328c 3 weeks ago 392MB 9.105MB 383.2MB 0 > postgres 18 55586516b2fd 3 weeks ago 649MB 481.1MB 168.3MB 1 > postgres 18 69e8582b781c 3 weeks ago 649MB 481.1MB 168.3MB 1 > redis 8.0 0035b78bfd0c 3 weeks ago 191MB 0B 190.6MB 1 > postgres 18 9b5bd946f3a5 3 weeks ago 649MB 87.43MB 562MB 0 > ghcr.io/baosystems/postgis 17-3.5 3b9255fd8454 3 weeks ago 889MB 454.7MB 434.7MB 0 > codeberg.org/klasse-methode/lauti nightly a929b859d1d9 4 weeks ago 108MB 8.991MB 98.55MB 0 > mariadb 11.4 2f45480c9cac 4 weeks ago 462MB 0B 462.1MB 0 > codeberg.org/klasse-methode/lauti nightly 0fb44884cc91 4 weeks ago 108MB 8.991MB 98.55MB 0 > codeberg.org/klasse-methode/lauti nightly 8621abd680a5 5 weeks ago 107MB 8.991MB 97.68MB 0 > codeberg.org/klasse-methode/lauti nightly 8b983049f4ca 5 weeks ago 106MB 8.991MB 97.48MB 0 > codeberg.org/klasse-methode/lauti nightly 003e571f4d92 5 weeks ago 106MB 8.991MB 97.48MB 0 > nginx 1.29.4 9dd288848f44 6 weeks ago 240MB 0B 239.6MB 5 > redis 8.4.0-alpine 4eec4565e45a 7 weeks ago 131MB 0B 130.6MB 2 > bonfirenetworks/bonfire latest-social-amd64 9c824fc42cb0 2 months ago 1.95GB 8.991MB 1.944GB 0 > nextcloud 32.0.3-fpm c21c27e6d271 2 months ago 2.08GB 0B 2.077GB 2 > listmonk/listmonk v6.0.0 bf3903d54a46 2 months ago 49.2MB 9.105MB 40.08MB 0 > ghcr.io/baosystems/postgis 17-3.5 378439647f8b 2 months ago 889MB 454.7MB 434.5MB 0 > lscr.io/linuxserver/socket-proxy 3.2.10-r0-ls65 687b9ff41af1 3 months ago 23.1MB 8.991MB 14.11MB 2 > traefik v3.6.5 67622638cd88 3 months ago 241MB 9.105MB 231.6MB 2 > traefik v3.6.2 aaf0f6185419 4 months ago 240MB 8.991MB 231.5MB 0 > lscr.io/linuxserver/socket-proxy 3.2.8-r0-ls61 79c8b71b52ed 4 months ago 23.1MB 8.991MB 14.1MB 0 > mariadb 11.4 e623ab8d513e 4 months ago 462MB 0B 462.1MB 0 > bonfirenetworks/bonfire latest-social-amd64 4de7be54026a 4 months ago 1.71GB 8.991MB 1.705GB 0 > loomio/loomio_channel_server latest 173654ee4bb6 4 months ago 1.89GB 0B 1.891GB 1 > codeberg.org/klasse-methode/lauti 1.1.1 0e8c99e74a9f 5 months ago 103MB 0B 102.7MB 0 > hello-world latest d4aaab6242e0 7 months ago 25.9kB 0B 25.9kB 1 > nginx 1.29.0 3ab4ed065a14 8 months ago 282MB 0B 282.1MB 0 > loomio/loomio v3.0.0 80b45776df19 8 months ago 3.27GB 0B 3.274GB 7 > nextcloud 31.0.6-fpm 85b223e81f87 9 months ago 2.02GB 0B 2.019GB 0 > redis 8.0.2-alpine 48501c5ad00d 9 months ago 87.4MB 0B 87.41MB 0 > getmeili/meilisearch v1.14 8cd411ba5d9e 11 months ago 241MB 0B 241.4MB 3 > dessalines/lemmy 0.18.3 ed33ded51630 2 years ago 244MB 8.016MB 236.3MB 0 > dessalines/lemmy-ui 0.18.3 b8d37e0be147 2 years ago 786MB 8.016MB 778.5MB 0 > asonix/pictrs 0.4.0-beta.19 480d36cd97e5 3 years ago 392MB 0B 392.2MB 0 > nginx 1.20.0 ea4560b87ff0 4 years ago 200MB 0B 200.2MB 0 For example nextcloud version 31.0.6-fpm and lauti nightly are no longer in use. Thanks!
Owner

There is no way in abra to do this, but you can check out:

docker system prune --help
There is no way in abra to do this, but you can check out: ``` docker system prune --help ```
Owner

abra server prune exists 😛

I can't even remember why we implemented that!

Yeh I normally do DOCKER_CONTEXT=foo docker system prune --all --force. This will not wipe volumes of apps that are deployed. If you undeploy and prune, then you will lose your data. So, you need to be careful.

A docs patch on https://docs.coopcloud.tech/operators/handbook/ would be v appreciated @jeppebundsgaard 🙏

`abra server prune` exists 😛 I can't even remember why we implemented that! Yeh I normally do `DOCKER_CONTEXT=foo docker system prune --all --force`. This will not wipe volumes of apps that are deployed. If you `undeploy` and `prune`, then you **will** lose your data. So, you need to be careful. A docs patch on https://docs.coopcloud.tech/operators/handbook/ would be v appreciated @jeppebundsgaard 🙏
decentral1se added the
documentation
label 2026-03-21 15:23:44 +00:00
decentral1se changed title from Cleaning up to Document clean up approaches (`docker system prune`) 2026-03-21 15:24:01 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#800
No description provided.