container-compose up¶
Start containers with compose.
Synopsis¶
Options¶
| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
--detach |
-d |
flag | Detaches from container logs. Note: If you do NOT detach, killing this process will NOT kill the container. To kill the container, run container-compose down | |
--file |
-f |
path | The path to your Docker Compose file | |
--build |
-b |
flag | Rebuild images before starting containers | |
--no-cache |
flag | Do not use cache | ||
--profile |
string | Specify a profile to enable. Can be specified multiple times. |
Arguments¶
| Argument | Description |
|---|---|
services |
Specify the services to start |
Examples¶
Start all services in the background¶
Run all services defined in the compose file and detach from logs.
Start specific services¶
Only start the web and db services.
Use a custom compose file¶
Specify a different compose file to use.
Filter by profile¶
Only start services that belong to the dev profile.
Notes / Anti-Patterns¶
- Killing the foreground process does NOT stop containers; use
downto stop and remove them.