mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 07:23:38 +00:00
Update stop cmd
`docker stop` send SIGTERM, and then SIGKILL after grace period, while `docker kill` send SIGTERM directly, so `docker stop` is more safe and ensure the integrity of the data. Signed-off-by: daixiang0 <764524258@qq.com>
This commit is contained in:
parent
86657b8742
commit
e3c46e3b09
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
### 如何停止所有正在运行的容器?
|
### 如何停止所有正在运行的容器?
|
||||||
|
|
||||||
答:可以使用 `docker kill $(docker container ls -q)` 命令。
|
答:可以使用 `docker stop $(docker container ls -q)` 命令。
|
||||||
|
|
||||||
### 如何批量清理已经停止的容器?
|
### 如何批量清理已经停止的容器?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user