Docker-compose module: Down

Stops and removes services using Docker Compose, based on a Docker Compose configuration file.

Example

Stopping a set of services defined in docker-compose.yaml configuration file:

space -m docker-compose /down/ -- docker-compose.yaml

Optionally, it is possible to specify the services name:

space -m docker-compose /down/ -- docker-compose.yaml "mycompose"

Exit status code is expected to be 0 on success.

Edit this page