Skip to content

Conversation

Kache
Copy link

@Kache Kache commented Aug 27, 2025

A service is ignored by Compose when none of the listed profiles match the active
ones, unless the service is explicitly targeted by a command. In that case its profile is
added to the set of active profiles.

WIP - have not run tests nor looked at CONTRIBUTING.md yet

See: https://docs.docker.com/reference/compose-file/profiles/
Fixes: #930

Contributor Checklist:

If this PR adds a new feature that improves compatibility with docker-compose, please add a link
to the exact part of compose spec that the PR touches.

For any user-visible change please add a release note to newsfragments directory, e.g.
newsfragments/my_feature.feature. See newsfragments/README.md for more details.

All changes require additional unit tests.

> A service is ignored by Compose when none of the listed `profiles` match the active
> ones, unless the service is explicitly targeted by a command. In that case its profile is
> added to the set of active profiles.

WIP - have not run tests nor looked at CONTRIBUTING.md yet

See: https://docs.docker.com/reference/compose-file/profiles/
Fixes: containers#930
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building or Running a Service Fails Without Explicit Profile
1 participant