Files
docker-docs/compose/reference/rm.md
John Mulhausen 3dc985adba Test run
2016-08-18 19:14:27 -07:00

663 B

description, keywords, menu, title
description keywords menu title
Removes stopped service containers.
fig, composition, compose, docker, orchestration, cli, rm
main
identifier parent
rm.compose smn_compose_cli
rm

rm

Usage: rm [options] [SERVICE...]

Options:
    -f, --force   Don't ask to confirm removal
    -v            Remove any anonymous volumes attached to containers
    -a, --all     Deprecated - no effect.

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.