dvsc is a utility housed in a Docker container that calculates the size of dangling volumes in your Docker environment.
- Quick and easy size calculation for all dangling Docker volumes.
- Lightweight and efficient.
- Perfect for Docker environments with numerous volumes, assisting in identifying unused space.
- Docker installed and running.
You don't need to install anything on your host other than Docker. The tool runs inside a Docker container.
To use dvsc, simply run:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes/:/var/lib/docker/volumes/ eon01/dvsc:latest
Output:
[..]
Total size of all dangling volumes in KB: 4355092 KB
dvsc accesses the Docker API through the Docker socket, lists all dangling volumes, calculates their sizes, and outputs the total size of all dangling volumes.
- Fork the repository on GitHub.
- Clone the forked repo.
- Make your changes.
- Submit a pull request.
We appreciate contributions, be it in the form of feature requests, bug fixes, or documentation enhancements.
dvsc is licensed under the MIT License.