container-compose build¶
Build images from a compose file without starting containers.
Synopsis¶
Options¶
| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
--file |
-f |
path | The path to your Docker Compose file | |
--no-cache |
flag | Do not use cache when building | ||
--verbose |
flag | Show extra detail on the empty-output message when no services need building | ||
--profile |
string | Specify a profile to enable. Can be specified multiple times. |
Arguments¶
| Argument | Description |
|---|---|
services |
Services to build (builds all if omitted) |
Examples¶
Build all services¶
Build all images defined with a build section in the compose file.
Build a specific service¶
Only build the api service.
Build without cache¶
Force a fresh build of all images.