Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/reference/compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@ get the postgres image for the db service from anywhere by using the `-f` flag a
$ docker compose -f ~/sandbox/rails/compose.yaml pull db
```

#### Using OCI-published Compose configurations

Docker Compose supports loading configurations directly from [OCI (Open Container Initiative) registries](https://opencontainers.org/).
This allows you to **share and reuse Compose applications** as OCI artifacts, the same way you distribute container images.

You can reference an OCI-published Compose file by using the `oci://` scheme in place of a local path.

**Example:**
```console
$ docker compose -f oci://ghcr.io/my-org/my-compose-config:latest up
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer we use the docker registry for the example 😉

Suggested change
$ docker compose -f oci://ghcr.io/my-org/my-compose-config:latest up
$ docker compose -f oci://docker.io/my-org/my-compose-config:latest up

```


### Use `-p` to specify a project name

Each configuration has a project name. Compose sets the project name using
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/davecgh/go-spew v1.1.1
github.com/distribution/reference v0.6.0
github.com/docker/buildx v0.28.0
github.com/docker/cli v28.5.0-rc.1+incompatible
github.com/docker/cli v28.5.0+incompatible
github.com/docker/cli-docs-tool v0.10.0
github.com/docker/docker v28.5.0+incompatible
github.com/docker/go-connections v0.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxK
github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/docker/buildx v0.28.0 h1:ZnrVsZ/qQwSOQ4Fx3IgXjiurAwvocaF1YUaPbIXD89E=
github.com/docker/buildx v0.28.0/go.mod h1:nLwx58w7xrQbLVSXiWiHpkVhY4ou4ci/hYomc139Vjk=
github.com/docker/cli v28.5.0-rc.1+incompatible h1:QRD0LtIkBuG8XJfdZQIyUyncfdogkOqF8elzL0XAINE=
github.com/docker/cli v28.5.0-rc.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
github.com/docker/cli v28.5.0+incompatible h1:crVqLrtKsrhC9c00ythRx435H8LiQnUKRtJLRR+Auxk=
github.com/docker/cli v28.5.0+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
github.com/docker/cli-docs-tool v0.10.0 h1:bOD6mKynPQgojQi3s2jgcUWGp/Ebqy1SeCr9VfKQLLU=
github.com/docker/cli-docs-tool v0.10.0/go.mod h1:5EM5zPnT2E7yCLERZmrDA234Vwn09fzRHP4aX1qwp1U=
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
Expand Down
Loading