Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

low disk space #1

Open
paigeadelethompson opened this issue Jan 18, 2025 · 0 comments
Open

low disk space #1

paigeadelethompson opened this issue Jan 18, 2025 · 0 comments

Comments

@paigeadelethompson
Copy link
Collaborator

paigeadelethompson commented Jan 18, 2025

Typically you want to use btrfs for docker, but this will ahve to do:

  • /var/cache/xbps is a space hog
  • docker ps -aq | xargs -i docker stop {} ; docker ps -aq | xargs -i docker rm {}
  • sv stop docker ; cd /var/lib/docker; rm -rf * ; cd ; sv start docker
  • docker-compose build; docker-compose up -d
-bash-5.2# docker images
REPOSITORY   TAG       IMAGE ID       CREATED          SIZE
stunnel      latest    0554e3d1cee5   9 minutes ago    283MB
inspi4       latest    1ede30fc0a32   14 minutes ago   777MB
-bash-5.2#
2.1G	total
-bash-5.2# pwd
/var/lib/docker
-bash-5.2# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       9.8G  7.1G  2.3G  77% /
.....
overlay         9.8G  7.1G  2.3G  77% /var/lib/docker/overlay2/75739496355a924966400aeb7310a399938cd2557572dabdc8f4ed91b1aaa657/merged
overlay         9.8G  7.1G  2.3G  77% /var/lib/docker/overlay2/a46171e0843c13e02a546d054062a1e648c0dbe03cdbd5894f10ea04c01c1c2a/merged
-bash-5.2#

Bought some time..

My experience Ive had better luck with btrfs .. ZFS is probably fine too I have had issues with overlay though where docker rmi didn't free up disk space as I expected but then again I don't run into this problem often in general

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant