The Wayback Machine - https://web.archive.org/web/20251014181032/https://docs.docker.com/reference/cli/docker/compose/publish/

docker compose publish

DescriptionPublish compose application
Usagedocker compose publish [OPTIONS] REPOSITORY[:TAG]

Description

Publish compose application

Options

OptionDefaultDescription
--oci-versionOCI image/artifact specification version (automatically determined by default)
--resolve-image-digestsPin image tags to digests
--with-envInclude environment variables in the published OCI artifact
-y, --yesAssume "yes" as answer to all prompts