| title | container-compose rm |
|---|---|
| description | Remove stopped project containers. |
Remove stopped project containers.
container-compose rm [global-options] [options] [services...]| 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. |
| Argument | Description |
|---|---|
services |
Specify the services whose containers should be removed |
Delete all containers for the project that are not currently running.
container-compose rmStop and remove all containers, even if they are active.
container-compose rm -f -sOnly remove containers for the web service.
container-compose rm web