compose/docs/reference
Milas Bowman d7b0b2bd7d
watch: build & launch the project at start (#10957)
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>
2023-09-07 13:27:23 -04:00
..
compose.md deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
compose_alpha.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_alpha_dry-run.md add alpha command to test dry-run 2023-01-16 11:11:35 +01:00
compose_alpha_publish.md introduce publish (alpha) command 2023-09-07 07:27:32 +02:00
compose_alpha_viz.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_alpha_watch.md watch: build & launch the project at start (#10957) 2023-09-07 13:27:23 -04:00
compose_build.md add support of --builder and BUILDX_BUILDER 2023-07-03 10:11:18 +02:00
compose_config.md introduce --no-path-resolution to skip relative path to be resolved 2023-05-16 13:02:56 +02:00
compose_cp.md when --index is not set select first service container 2023-07-07 14:08:24 +02:00
compose_create.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_down.md cli: fix timeout behavior on up / restart / stop (#10672) 2023-06-12 09:18:25 -04:00
compose_events.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_exec.md when --index is not set select first service container 2023-07-07 14:08:24 +02:00
compose_images.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_kill.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_logs.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_ls.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_pause.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_port.md when --index is not set select first service container 2023-07-07 14:08:24 +02:00
compose_ps.md align docker compose ps with docker CLI to support --format 2023-08-25 16:36:45 +02:00
compose_pull.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_push.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_restart.md cli: fix timeout behavior on up / restart / stop (#10672) 2023-06-12 09:18:25 -04:00
compose_rm.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_run.md Fix capitalization error in sentence by adding an uppercase letter at beginning 2023-06-27 22:48:17 +02:00
compose_start.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_stop.md cli: fix timeout behavior on up / restart / stop (#10672) 2023-06-12 09:18:25 -04:00
compose_top.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_unpause.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_up.md up: handle various attach use cases better 2023-08-18 12:38:38 +02:00
compose_version.md Update dry-run documentation 2023-05-15 09:39:46 +02:00
compose_wait.md Add `docker compose wait` 2023-06-30 16:07:03 +02:00
docker_compose.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_alpha.yaml introduce publish (alpha) command 2023-09-07 07:27:32 +02:00
docker_compose_alpha_dry-run.yaml add alpha command to test dry-run 2023-01-16 11:11:35 +01:00
docker_compose_alpha_publish.yaml introduce publish (alpha) command 2023-09-07 07:27:32 +02:00
docker_compose_alpha_viz.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_alpha_watch.yaml watch: build & launch the project at start (#10957) 2023-09-07 13:27:23 -04:00
docker_compose_build.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_config.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_convert.yaml docs: fix grammatical issues (#9997) 2022-11-29 10:52:22 -05:00
docker_compose_cp.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_create.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_down.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_events.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_exec.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_images.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_kill.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_logs.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_ls.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_pause.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_port.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_ps.yaml align docker compose ps with docker CLI to support --format 2023-08-25 16:36:45 +02:00
docker_compose_pull.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_push.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_restart.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_rm.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_run.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_start.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_stop.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_top.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_unpause.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_up.yaml up: handle various attach use cases better 2023-08-18 12:38:38 +02:00
docker_compose_version.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00
docker_compose_wait.yaml deps: bump docker/cli-docs-tool to v0.6.0 2023-07-10 12:23:48 +02:00