From 11f970ed5efc525f53f10526806a971adc7c3fd1 Mon Sep 17 00:00:00 2001 From: Eduardo Diaz Date: Thu, 1 May 2025 10:41:59 +0200 Subject: [PATCH] Update oci-artifact.md (#22489) ## Description Included the -y option to bypass interactive confirmation in the OCI artifact documentation ## Reviews - [ ] Technical review - [ ] Editorial review - [ ] Product review --------- Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> --- content/manuals/compose/how-tos/oci-artifact.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/manuals/compose/how-tos/oci-artifact.md b/content/manuals/compose/how-tos/oci-artifact.md index 33ce8042fc..0791df4e6f 100644 --- a/content/manuals/compose/how-tos/oci-artifact.md +++ b/content/manuals/compose/how-tos/oci-artifact.md @@ -141,3 +141,9 @@ Do you want to continue? [y/N]: y Your compose stack "oci://registry.example.com/stack:latest" is stored in "~/Library/Caches/docker-compose/964e715660d6f6c3b384e05e7338613795f7dcd3613890cfa57e3540353b9d6d" ``` + +The `docker compose publish` command supports non-interactive execution, letting you skip the confirmation prompt by including the `-y` (or `--yes`) flag: + +```console +$ docker compose publish -y username/my-compose-app:latest +```