-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] docker compose start/stop/restart does not automatically enable profiles with explicitly targeted service #9986
Comments
Hello @Valgard
That means you should explicitly give the information to Compose using the |
Hello @glours
The Compose specification also specifies under the point Illustrative example following
So this means for me when I run The same behaviour should also apply to So for me its is a bug in docker compose or the documentation is misleading. |
Hello @glours , Hello @nicksieger , Hello @nicks , it would be really nice of you if I could get an answer to my last comment. Regards, |
@Valgard I'll take look |
Description
I have a docker compose file like this:
I can bring up
app2
withdocker compose up app2
.But the commands
docker compose start app2
docker compose stop app2
docker compose restart app2
do not automatically enable profile
app2
and fail silently or with messageno such service: app2
.Regading Using service profiles and Compose Specification i expected that the commands automatically enable the profile.
Steps To Reproduce
docker compose up -d app2
docker compose start app2
fails with messageno such service: app2
docker compose stop app2
fails silentlydocker compose start app2
fails silentlyCompose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: