LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-compose-down

stop and remove compose resources

TLDR

Stop and remove containers
$ docker compose down
copy
Remove volumes too
$ docker compose down -v
copy
Remove images too
$ docker compose down --rmi all
copy
Remove orphan containers
$ docker compose down --remove-orphans
copy
Timeout for shutdown
$ docker compose down -t [30]
copy

SYNOPSIS

docker compose down [options]

DESCRIPTION

docker compose down stops and removes containers and networks created by docker compose up.By default, only containers and networks are removed. Volumes and images are preserved unless -v or --rmi is specified. Networks and volumes defined as external are never removed.

PARAMETERS

-v, --volumes

Remove named volumes and anonymous volumes.
--rmi type
Remove images: all or local.
--remove-orphans
Remove containers not defined in Compose file.
-t, --timeout seconds
Shutdown timeout (default 10).

SEE ALSO

Copied to clipboard
Kai