mirror of
https://github.com/docker/compose.git
synced 2025-05-24 16:30:15 +02:00
The `alpha watch` command current "attaches" to an already-running Compose project, so it's necessary to run something like `docker compose up --wait` first. Now, we'll do the equivalent of an `up --build` before starting the watch, so that we know the project is up-to-date and running. Additionally, unlike an interactive `up`, the services are not stopped when `watch` exits (e.g. via `Ctrl-C`). This prevents the need to start from scratch each time the command is run - if some services are already running and up-to-date, they can be used as-is. A `down` can always be used to destroy everything, and we can consider introducing a flag like `--down-on-exit` to `watch` or changing the default. Signed-off-by: Milas Bowman <milas.bowman@docker.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
command: docker compose alpha watch
|
|
short: |
|
|
EXPERIMENTAL - Watch build context for service and rebuild/refresh containers when files are updated
|
|
long: |
|
|
EXPERIMENTAL - Watch build context for service and rebuild/refresh containers when files are updated
|
|
usage: docker compose alpha watch [SERVICE...]
|
|
pname: docker compose alpha
|
|
plink: docker_compose_alpha.yaml
|
|
options:
|
|
- option: no-up
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Do not build & start services before watching
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
- option: quiet
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: hide build output
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
inherited_options:
|
|
- option: dry-run
|
|
value_type: bool
|
|
default_value: "false"
|
|
description: Execute command in dry run mode
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: false
|
|
kubernetes: false
|
|
swarm: false
|
|
deprecated: false
|
|
hidden: false
|
|
experimental: false
|
|
experimentalcli: true
|
|
kubernetes: false
|
|
swarm: false
|
|
|