Closed andy-rash closed 3 years ago
Looks like the fix will be placed along with the version 1.0.15
https://github.com/docker/compose-cli/blob/v1.0.15/cli/cmd/compose/compose.go#L123
Looks like the fix will be placed along with the version 1.0.15
https://github.com/docker/compose-cli/blob/v1.0.15/cli/cmd/compose/compose.go#L123
Well that would just make too much sense, wouldn't it? I could've sworn I saw that fix under the v1.0.14 tag when I looked yesterday, but I guess I was mistaken. Thanks for catching that!
Description
Docker Compose CLI ignores service profiles, instead starting up all services in
docker-compose.yml
.This issue has been reported very recently, and a fix appears to have been included in the latest release (v1.0.14). However, this doesn't seem to have fixed the issue.
I noticed this problem after updating the Compose CLI as part of updating Docker Desktop for Mac. This issue does not appear in Docker Desktop v3.3.1 (i.e., the version right before Compose CLI v1.0.14 was introduced).
Profile Table
Steps to reproduce the issue:
docker compose --profile dev up
ordocker compose --profile prod up
.docker-compose.yml
Describe the results you received:
Result from
docker compose --profile dev up
.Describe the results you expected:
Result from
docker compose --profile dev up
.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker context show
:You can also run
docker context inspect context-name
to give us more details but don't forget to remove sensitive content.Output of
docker info
:Additional environment details (AWS ECS, Azure ACI, local, etc.):
macOS Big Sur (v11.3.1, build 20E241), running on Apple Silicon
Compose CLI installed as part of Docker Desktop for Mac