This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Docker compose does not select specific service --profile #1636
Labels
bug 🐞
App is not working correctly.
Description
Seems the
--profile
feature is not working properly if you need to select certain services fromdocker-compose.yaml
The current scenario, I'm trying to select a few services and start (dev and rabbitmq services), but the command are starting all services from the docker compose file.
Using the old command
docker-compose
CLI, I cannot replicate the issue. I'm assuming the error is related to the new commanddocker compose
.Profile Table
Steps to reproduce the issue:
docker compose --profile build build
(custom services)docker compose --profile dev --profile rabbit up
docker-compose.yaml
(removed some sensitive data)Describe the results you received:
Result from
docker compose --profile dev --profile rabbit up
Describe the results you expected:
Result from
docker compose --profile dev --profile rabbit 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.):
Local environment
The text was updated successfully, but these errors were encountered: