https://github.com/eon01/dvsc
dvsc: Dangling Volume Size Calculator
https://github.com/eon01/dvsc
Last synced: about 2 months ago
JSON representation
dvsc: Dangling Volume Size Calculator
- Host: GitHub
- URL: https://github.com/eon01/dvsc
- Owner: eon01
- Created: 2023-11-04T19:54:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-04T20:24:54.000Z (over 2 years ago)
- Last Synced: 2025-01-02T23:17:54.591Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DVSC - Dangling Volume Size Calculator
dvsc is a utility housed in a Docker container that calculates the size of dangling volumes in your Docker environment.
## Features
- 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.
## Prerequisites
- Docker installed and running.
## Installation
You don't need to install anything on your host other than Docker. The tool runs inside a Docker container.
## Usage
To use dvsc, simply run:
```bash
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:
```bash
[..]
Total size of all dangling volumes in KB: 4355092 KB
```
## How it Works
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.
## Contributing
- 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.
## License
dvsc is licensed under the MIT License.