Add description to Bash snippets.
This commit is contained in:
parent
e71467b243
commit
e6bf5cc191
@ -1,12 +1,14 @@
|
|||||||
# Docker Snippets
|
# Docker Snippets
|
||||||
|
|
||||||
## Stop All Containers
|
## Stop All Containers
|
||||||
|
Stops all running containers.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker stop $(docker ps -q)
|
docker stop $(docker ps -q)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start Stopped Continaers
|
## Start Stopped Continaers
|
||||||
|
Starts all containers that were stopped.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker start $(docker ps -q -f "status=exited")
|
docker start $(docker ps -q -f "status=exited")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user