docker cli
This commit is contained in:
@@ -71,6 +71,7 @@ export default defineConfig({
|
|||||||
link: '/docker/',
|
link: '/docker/',
|
||||||
collapsed: true,
|
collapsed: true,
|
||||||
items: [
|
items: [
|
||||||
|
{ text: 'CLI Commands', link: '/docker/cli-commands' },
|
||||||
{ text: 'Docker Exec', link: '/docker/exec-into-container' },
|
{ text: 'Docker Exec', link: '/docker/exec-into-container' },
|
||||||
{ text: 'Local DB (MSSQL)', link: '/docker/local-db-mssql' },
|
{ text: 'Local DB (MSSQL)', link: '/docker/local-db-mssql' },
|
||||||
{ text: 'Local DB (PostgreSQL)', link: '/docker/local-db-pg' },
|
{ text: 'Local DB (PostgreSQL)', link: '/docker/local-db-pg' },
|
||||||
|
|||||||
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)
|
#### [Exec Into Container](./exec-into-container.md)
|
||||||
#### [Local Database With Scripts (MSSQL)](./local-db-mssql.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