docker cli
This commit is contained in:
17
docs/docker/cli-commands.md
Normal file
17
docs/docker/cli-commands.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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)
|
||||
```
|
||||
@@ -2,4 +2,5 @@
|
||||
|
||||
#### [Exec Into Container](./exec-into-container.md)
|
||||
#### [Local Database With Scripts (MSSQL)](./local-db-mssql.md)
|
||||
#### [Local Database With Scripts (PostgreSQL)](./local-db-pg.md)
|
||||
#### [Local Database With Scripts (PostgreSQL)](./local-db-pg.md)
|
||||
#### [CLI Commands](./cli-commands.md)
|
||||
Reference in New Issue
Block a user