-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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] compose config ignores the service to show the config for when given as argument #11608
Comments
fixed by #11604 |
This is not really fixed - it works if services don't have profiles but when profiles are involved the behavior is strange: # with my own build of what's now in main
$ docker-compose-linux-x86_64 version
Docker Compose version 5a1ba0e
# and this compose.yaml
$ cat compose.yaml
services:
s1:
profiles:
- p1
image: image
s2:
profiles:
- p2
image: image
# this shouldn't "work"
$ docker-compose-linux-x86_64 config s1
name: config
services:
s1:
profiles:
- p1
image: image
networks:
default: null
networks:
default:
name: config_default
# this definitely shouldn't work
$ docker-compose-linux-x86_64 --profile p2 config s1
name: config
services:
s1:
profiles:
- p1
image: image
networks:
default: null
networks:
default:
name: config_default
# this doesn't work, but it should
$ docker-compose-linux-x86_64 --profile '*' config s1
no such service: s1
|
Compose commands, when ran with an explicit service name, automagically enable the target service even it's not active by profile. |
oh uau, that's actually true - this thing is definitely a sea creature - nothing is plane/plain :D (is the name of the mascot chosen?) |
#11587 (comment)
The text was updated successfully, but these errors were encountered: