Skip to content

Commit dfc3f20

Browse files
committed
added a new command to stop all running containers
1 parent 461e36e commit dfc3f20

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

chapters/docker-commands.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Here is the list of commonly used Docker commands:
1515
| Run a container | `docker run`
1616
| List containers | `docker ps`
1717
| Stop a container | `docker stop ${CID}`
18+
| Stop all running containers | `docker stop ``docker ps -q```
1819
| Find IP address of the container | `docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID}`
1920
| Attach to a container | `docker attach ${CID}`
2021
| Remove a container | `docker rm ${CID}`

0 commit comments

Comments
 (0)