Commit Graph
187 Commits
Author SHA1 Message Date
Max Proske 0b9fb4fef9 PRIVATE_PORT optional for docker compose port
Signed-off-by: Max Proske <[email protected]>
2026-09-11 11:35:18 +02:00
Guillaume Lours a896529193 fix(bridge): confirm before wiping non-empty convert output dir
`bridge convert -o <dir>` unconditionally ran `os.RemoveAll` on the
output directory and discarded any error, so a typo (`-o .`, `-o
$PWD`, `-o ~`) silently destroyed unrelated user data.

An empty or missing output directory is still created silently, but a
non-empty one now requires explicit confirmation (prompted
interactively, or via the new `--yes` flag for scripts/CI) before
being wiped.

Signed-off-by: Guillaume Lours <[email protected]>
2026-09-03 14:38:41 +02:00
Guillaume Lours e7c766fe3d fix(compose): reject unknown subcommands under bridge/transformations
bridgeCommand and transformersCommand had no RunE, so an unknown
subcommand (e.g. "bridge zzz") fell through cobra's default
non-Runnable path: help printed, exit 0. Scripts couldn't distinguish
a typo from success. Mirrors the same fix already shipped on the
compose root command.

Signed-off-by: Guillaume Lours <[email protected]>
2026-08-31 17:08:47 +02:00
Guillaume Lours f729794270 docs(hooks): document pre_start hook container retention and cleanup
- compose_down.md: note that retained pre_start hook containers (those
  kept after a hook failure for post-mortem) are automatically removed
  by compose down, with the label filter to list them beforehand.
- compose_up.md: note the retention behavior on pre_start hook failure,
  how to inspect the retained container, and that it is cleaned up on
  the next compose up or compose down.

Signed-off-by: Guillaume Lours <[email protected]>
2026-08-20 18:57:02 +02:00
Guillaume Lours 3a62ae63ce fix(ps): honor psFormat from Docker CLI config when no --format flag given
The --format flag defaulted to "table" instead of "", so the
opts.Format == "" guard in runPs never fired for a bare compose ps.
Setting the default to "" lets the existing config-fallback path work,
matching the behaviour of docker ps.

Fixes #13643
Supersedes #14032

Signed-off-by: Guillaume Lours <[email protected]>
2026-08-20 14:05:34 +02:00
Nick Janetakis 943f8c929c Generate docs with make docs
Signed-off-by: Nick Janetakis <[email protected]>
2026-06-29 20:56:31 +02:00
Nick Janetakis 2a6a4e5179 Normalize --no-TTY flag to --no-tty
Signed-off-by: Nick Janetakis <[email protected]>
2026-06-29 20:56:31 +02:00
Guillaume Lours 3d0dd57fbd docs: ps --format json outputs JSON Lines, not a JSON array
Output was aligned with `docker ps --format json` in v2.21.0 (#10918)
but the docs were never updated.

Fixes #13850

Signed-off-by: Guillaume Lours <[email protected]>
2026-06-23 16:18:12 +02:00
Sebastiaan van Stijn 39ee1d02b6 docs: compose logs: add more links for flag descriptions
follow-up to 7eeb7de7a2, adding more
links now that the CLI reference for docker logs has anchors for them.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
2026-06-10 09:36:31 +02:00
Sebastiaan van Stijn 7eeb7de7a2 docs: compose logs: add links for since/until flag descriptions
Link to the corresponding `docker container logs` equivalents, which
contain more details on the accepted formats and use.

The container logs documentation still needs some updates to provide
per-flag sections, so follow-ups can be made once those are done.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
2026-05-26 14:28:34 +02:00
Ryan Bonnell b8effbacb5 Change verb tense in compose command documentation
Signed-off-by: Ryan Bonnell <[email protected]>
2026-05-06 21:02:56 +02:00
Nicolas De Loof b32297dccd add --wait option to start command
Signed-off-by: Nicolas De Loof <[email protected]>
2025-12-01 11:58:00 +01:00
Nicolas De Loof 7eb5adeef6 introduce --insecure-registry, reserved for testing purpose
Signed-off-by: Nicolas De Loof <[email protected]>
2025-11-06 16:17:21 +01:00
Nicolas De Loof 0793ad7c68 document support for OCI and Git remote resources
Signed-off-by: Nicolas De Loof <[email protected]>
2025-11-06 16:14:05 +01:00
Anton Ovchinnikov 8619f5d72a Fix help output for "exec --no-tty" option
Signed-off-by: Anton Ovchinnikov <[email protected]>
2025-10-23 18:19:41 +02:00
Nicolas De Loof 07602f2070 publish Compose application as compose.yaml + images
Signed-off-by: Nicolas De Loof <[email protected]>
2025-10-03 10:59:57 +02:00
Nicolas De loofandAllie Sadler c75418ee07 Apply suggestions from code review
Co-authored-by: Allie Sadler <[email protected]>
Signed-off-by: Nicolas De loof <[email protected]>
Signed-off-by: Nicolas De Loof <[email protected]>
2025-09-08 15:56:55 +02:00
Nicolas De Loof b768232c0e document (hidden) --tty --interactive flags
Signed-off-by: Nicolas De Loof <[email protected]>
2025-09-08 15:56:55 +02:00
Nicolas De Loof fd954f266c show build progress during watch rebuild
Signed-off-by: Nicolas De Loof <[email protected]>
2025-07-23 13:57:46 +02:00
Nicolas De Loof 8f91793fb5 introduce build.provenance and sbom support
Signed-off-by: Nicolas De Loof <[email protected]>
2025-07-21 17:07:41 +02:00
MohammadHasan Akbari f42226e352 feat: add --models flag to config command
Signed-off-by: MohammadHasan Akbari <[email protected]>
2025-07-11 11:08:08 +02:00
MohammadHasan AkbariandAmin Ehterami 35efa97b7d feat: add since & until flags to events command
Signed-off-by: MohammadHasan Akbari <[email protected]>
Co-authored-by: Amin Ehterami <[email protected]>
2025-07-09 10:08:33 +02:00
MohammadHasan Akbari 66524e7728 feat: add --networks flag to config command
Signed-off-by: MohammadHasan Akbari <[email protected]>
2025-07-07 10:37:20 +02:00
Leonardo Peregrino 63b441401e add volumes docs/reference/
Signed-off-by: Leonardo Peregrino <[email protected]>
2025-06-30 19:38:27 +02:00
Nicolas De Loof 693b9ef078 fix support for BUILDKIT_PROGRESS
Signed-off-by: Nicolas De Loof <[email protected]>
2025-06-02 11:03:04 +02:00
Guillaume Lours 9a9227ce64 add new bridge commands documentation
Signed-off-by: Guillaume Lours <[email protected]>
2025-05-27 10:35:30 +02:00
Guillaume Lours bbb2b76a14 bump cli-doc-tools to v0.10.0
and update the documentation to pass CI checks

Signed-off-by: Guillaume Lours <[email protected]>
2025-05-26 16:37:45 +02:00
Guillaume Lours 7e198ee6a3 remove provenance build flag for now
Signed-off-by: Guillaume Lours <[email protected]>
2025-05-20 18:21:05 +02:00
Guillaume Lours 0566431c64 only use attestation when building image outside the development inner loop
when building a image, by default attestation are generated and modify the image ID which trigger a container recreation on up, run command even if there isn't any changes on the image content itself

Signed-off-by: Guillaume Lours <[email protected]>
2025-05-20 18:21:05 +02:00
Nicolas De Loof 2352a4a016 introduce config --lock-image-digests
Signed-off-by: Nicolas De Loof <[email protected]>
2025-05-19 13:53:01 +02:00
Guillaume Lours 009a239510 remove convert alias from config command
Signed-off-by: Guillaume Lours <[email protected]>
2025-05-19 12:30:09 +02:00
Alessio Perugini 4bf18d2325 docs: regenerate
Signed-off-by: Alessio Perugini <[email protected]>
2025-05-06 22:33:52 +02:00
Nicolas De Loof 16e83f002d introduce build --check
Signed-off-by: Nicolas De Loof <[email protected]>
2025-05-06 07:54:30 +02:00
Suleiman Dibirov b543380708 feat(run): Add --quiet and --quiet-build options for the run command
Signed-off-by: Suleiman Dibirov <[email protected]>
2025-04-03 14:50:38 +02:00
k-kbk ec49db98d4 fix: replace docker-compose.yml with compose.yaml
Signed-off-by: k-kbk <[email protected]>
2025-03-27 15:44:00 +01:00
k-kbk e5a353b34d fix: replace docker-compose.yml with compose.yaml
Signed-off-by: k-kbk <[email protected]>
2025-03-27 15:44:00 +01:00
Nicolas De Loof 75368c7859 introduce build --print to dump equivalent bakefile
Signed-off-by: Nicolas De Loof <[email protected]>
2025-03-26 12:24:31 +01:00
Nicolas De Loof a0d1c3f944 introduce config --no-env-resolution
Signed-off-by: Nicolas De Loof <[email protected]>
2025-03-24 15:46:04 +01:00
Remco Kranenburg b0badf1eb0 Set watch option --prune=true as default
Signed-off-by: Remco Kranenburg <[email protected]>
2025-03-19 17:48:05 +01:00
Guillaume Lours 13618756dc make publish a regular command of Compose
Signed-off-by: Guillaume Lours <[email protected]>
2025-03-13 16:17:00 +01:00
Nicolas De Loof 83cafe2838 Add support to pass env-from-file to docker compose run
Signed-off-by: Vedant Koditkar <[email protected]>
Signed-off-by: Nicolas De Loof <[email protected]>
2025-03-12 09:04:39 +01:00
Nicolas De Loof 8615e9a7c1 deprecate --y, prefer --yes
Signed-off-by: Nicolas De Loof <[email protected]>
2025-03-11 09:01:36 +01:00
Andrew Kramer 145bb8466d Update yaml docs
Signed-off-by: Andrew Kramer <[email protected]>
2025-02-22 11:17:19 +01:00
Andrew Kramer acac184135 Link to configuration file docs
Signed-off-by: Andrew Kramer <[email protected]>
2025-02-22 11:17:19 +01:00
Max Proske 2884d6df0d Fix ls --quiet help description
Signed-off-by: Max Proske <[email protected]>
2025-02-10 17:30:39 +01:00
Max Proske 40cd08f318 Update link in stats --help output
Signed-off-by: Max Proske <[email protected]>
2025-02-04 18:12:17 +01:00
Guillaume Lours 806ac91cf6 add warning when trying to publish env variables with OCI artifact
Signed-off-by: Guillaume Lours <[email protected]>
2025-01-30 17:37:07 +01:00
Guillaume Lours 840288895e add --with-env flag to publish command
this flag allow publishing env variables in the Compose OCI artifact

Signed-off-by: Guillaume Lours <[email protected]>
2025-01-29 15:45:00 +01:00
Guillaume Lours 34bcd03a76 add --pull to run command
Signed-off-by: Guillaume Lours <[email protected]>
2024-12-18 12:20:02 +01:00
Nicolas De Loof 8e0520e71e prompt user to confirm volume recreation
Signed-off-by: Nicolas De Loof <[email protected]>
2024-12-12 19:11:00 +01:00