docker volume ls: List Volumes & Find Dangling
List volumes - including the dangling ones eating disk.
docker volume ls lists volumes known to the daemon. This page covers filtering for dangling volumes, which accumulate on CI runners.
What it does
docker volume ls shows the driver and name of each volume. Anonymous volumes created by containers persist after the container is gone unless removed, so this is how you find orphaned ones.
Common usage
docker volume ls
docker volume ls --filter "dangling=true"
docker volume ls --format "{{.Name}}"
docker volume ls --filter "label=ci=true"Common errors in CI
volume ls is read-only and does not error normally. The CI insight: anonymous volumes from each docker run (with VOLUME in the image) pile up and consume disk; list dangling ones with --filter "dangling=true" and clear them with docker volume prune. Run containers with --rm -v to drop their anonymous volumes on exit.