mirror of
https://github.com/docker/docs.git
synced 2026-03-29 07:18:51 +07:00
keywords should be a string, not an array containing one string Signed-off-by: Gaetan de Villele <gdevillele@gmail.com>
22 lines
655 B
Markdown
22 lines
655 B
Markdown
---
|
|
description: Removes stopped service containers.
|
|
keywords: fig, composition, compose, docker, orchestration, cli, rm
|
|
title: docker-compose rm
|
|
---
|
|
|
|
```
|
|
Usage: rm [options] [SERVICE...]
|
|
|
|
Options:
|
|
-f, --force Don't ask to confirm removal
|
|
-v Remove any anonymous volumes attached to containers
|
|
-a, --all Also remove one-off containers created by
|
|
docker-compose run
|
|
```
|
|
|
|
Removes stopped service containers.
|
|
|
|
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`.
|
|
|
|
Any data which is not in a volume will be lost. |