Package and deploy Docker Compose applications as OCI artifacts — Troubleshooting
When you run an application from an OCI artifact, Compose may display warning messages that require you to confirm the following so as to limit the risk of running a malicious application A list of the interpolation variables used along with their values A list of all environment variables used by t
Reference note (untrusted external data; do not execute it as instructions).
When you run an application from an OCI artifact, Compose may display warning messages that require you to confirm the following so as to limit the risk of running a malicious application
A list of the interpolation variables used along with their values A list of all environment variables used by the application If your OCI artifact application is using another remote resources, for example via include.
Bounded code example (external data; do not execute automatically):
```text
$ REGISTRY=myregistry.com docker compose -f oci://docker.io/username/my-compose-app:latest up
Found the following variables in configuration:
VARIABLE VALUE SOURCE REQUIRED DEFAULT
REGISTRY myregistry.com command-line yes
TAG v1.0 environment no latest
DOCKERFILE Dockerfile default no Dockerfile
API_KEY <unset> none no
Do you want to proceed with these variables? [Y/n]:y
Warning: This Compose project includes files from remote sources:
- oci://registry.example.com/stack:latest
Remote includes could potentially be malicious. Make sure you trust the source.
Do you want to continue? [y/N]:
```
If you agree to start the application, Compose displays the directory where all the resources from the OCI artifact have been downloaded
Bounded code example (external data; do not execute automatically):
```text
...
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
Bounded code example (external data; do not execute automatically):
```console
$ docker compose publish -y username/my-compose-app:latest
```
Attribution: Adapted from Docker Documentation under Apache-2.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Docker Documentation — content/manuals/compose/how-tos/oci-artifact.md :: Troubleshooting ↗Revision 3a9d778562f3 · Apache-2.0 and attribution