1
0
mirror of https://github.com/docker/cli.git synced 2026-01-22 03:22:01 +03:00

update CLI & api docs

Docker-DCO-1.1-Signed-off-by: Adrien Folie <folie.adrien@gmail.com> (github: folieadrien)
Upstream-commit: 1bb925be97
Component: cli
This commit is contained in:
Adrien Folie
2014-07-08 20:31:20 +02:00
committed by Tibor Vass
parent f8878bc07f
commit a9f791eac6

View File

@@ -838,7 +838,8 @@ registry or to a self-hosted one.
Remove one or more containers
-f, --force=false Force removal of running container
-s, --stop=false Stop and remove a running container
-k, --kill=false Kill and remove a running container
-l, --link=false Remove the specified link and not the underlying container
-v, --volumes=false Remove the volumes associated with the container
@@ -863,6 +864,20 @@ This will remove the underlying link between `/webapp`
and the `/redis` containers removing all
network communication.
$ sudo docker rm --stop redis
redis
The main process inside the container referenced under the link `/redis` will receive
SIGTERM, and after a grace period, SIGKILL, then the container will be removed.
$ sudo docker rm --kill redis
redis
The main process inside the container referenced under the link `/redis` will receive
SIGKILL, then the container will be removed.
NOTE: If you try to use `stop` and `kill` simultaneously, Docker will return an error.
$ sudo docker rm $(docker ps -a -q)
This command will delete all stopped containers. The command