Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.37 KB

File metadata and controls

61 lines (41 loc) · 1.37 KB
title container-compose rm
description Remove stopped project containers.

container-compose rm

Remove stopped project containers.

Synopsis

container-compose rm [global-options] [options] [services...]

Options

Flag Shorthand Type Default Description
--force -f flag Remove containers even if they are running
--stop -s flag Stop the containers before removing them
--volumes -v flag Remove anonymous volumes associated with the containers
--file path The path to your Docker Compose file
--profile string Specify a profile to enable. Can be specified multiple times.

Arguments

Argument Description
services Specify the services whose containers should be removed

Examples

Remove all stopped containers

Delete all containers for the project that are not currently running.

container-compose rm

Force remove running containers

Stop and remove all containers, even if they are active.

container-compose rm -f -s

Remove specific service containers

Only remove containers for the web service.

container-compose rm web

See also