Files
code-snippets/docs/docker/cli-commands.md
Liam Pietralla 256c55e585
All checks were successful
Build, Test & Publish / Build (push) Successful in 41s
Build, Test & Publish / Build and Publish Container Image (push) Successful in 1m14s
Build, Test & Publish / Deploy to Infrastructure (push) Successful in 16s
docker cli
2026-02-04 12:35:07 +11:00

17 lines
446 B
Markdown

# CLI Commands
The docker CLI can be used for a variety of management tasks.
## Clear Multiple Volumes
We can combine the `docker volume rm` command with `docker volume ls` to clear multiple volumes at once. For example, to remove all unused volumes:
```bash
docker volume rm $(docker volume ls -qf dangling=true)
```
or to remove volumes with a specific name pattern:
```bash
docker volume rm $(docker volume ls -qf name=your_pattern)
```