update to docker-compose rm reference per Compose v3 (#2288)

corrected docs to reflect docker-compose version update

updates per Joffrey's comments

Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
Victoria Bialas 2017-03-13 15:53:19 -07:00 committed by GitHub
parent 8a6e01fcc9
commit f9d7107499
1 changed files with 12 additions and 4 deletions

View File

@ -5,19 +5,27 @@ title: docker-compose rm
notoc: true notoc: true
--- ---
``` ```none
Usage: rm [options] [SERVICE...] Usage: rm [options] [SERVICE...]
Options: Options:
-f, --force Don't ask to confirm removal -f, --force Don't ask to confirm removal
-v Remove any anonymous volumes attached to containers -v Remove any anonymous volumes attached to containers
-a, --all Also remove one-off containers created by
docker-compose run
``` ```
Removes stopped service containers. Removes stopped service containers.
By default, anonymous volumes attached to containers will not be removed. You By default, anonymous volumes attached to containers will not be removed. You
can override this with `-v`. To list all volumes, use `docker volume ls`. can override this with `-v`. To list all volumes, use `docker volume ls`.
Any data which is not in a volume will be lost. Any data which is not in a volume will be lost.
Running the command with no options will also remove one-off containers created
by `docker-compose up` or `docker-compose run`:
```none
$ docker-compose rm
Going to remove djangoquickstart_web_run_1
Are you sure? [yN] y
Removing djangoquickstart_web_run_1 ... done
```