linux
docker disk usage
Find large directories
bashdu -ah / | sort -h -r | head -n 20
Find containers using a given volume
bashdocker ps -a --filter volume=<volume>
Remove container and its associated volume
bashdocker rm -v container
See total volume, image, container space
bashdocker system df
See space used per volume
bashdocker system df -v
Remove dangling volumes from disk
bashdocker volume prune
wsl uses all the ram
increase number of open files
Running into EMFILE errors because too many files open? (looking at you npm i):
bashmylimit=8000 sudo prlimit --nofile=$mylimit --pid $$; ulimit -n $mylimit su $USER
or
bashsudo prlimit -p "$$" --nofile=10000:10000 exec $SHELL ulimit -n 10000
posts
links
A guide and tools for running macOS on QEMU/KVM. Supports running modern macOS versions including Monterey, Ventura and Sonoma using OpenCore.