compose/cmd
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
..
cmdtrace otel: refactor root command span reporting 2023-06-20 17:25:58 +02:00
compatibility don't skip `compose` used as project name 2023-06-06 10:24:59 +02:00
compose watch: build & launch the project at start (#10957) 2023-09-07 13:27:23 -04:00
formatter add support for attributes exposed by `docker ps` 2023-08-25 16:36:45 +02:00
main.go otel: refactor root command span reporting 2023-06-20 17:25:58 +02:00