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] profiles have no effect on config with v2.24.7 #11587
Labels
Comments
luciangabor
changed the title
[BUG] profiles have no effect on config with v.24.7
[BUG] profiles have no effect on config with v2.24.7
Mar 7, 2024
Besides:
here's a couple more:
$ docker compose -f - config <<-'EOF'
name: no-build-or-image
services:
service:
read_only: true
EOF
name: no-build-or-image
networks:
default:
name: no-build-or-image_default
services:
service:
networks:
default: null
read_only: true
$ docker compose -f - config -q <<-'EOF'
name: no-build-or-image
services:
service:
read_only: true
EOF
$ echo $?
0
$ docker compose -f - config service1 <<-'EOF'
name: select-service
services:
service1:
image: service1
service2:
image: service2
EOF
name: select-service
networks:
default:
name: select-service_default
services:
service1:
image: service1
networks:
default: null
service2:
image: service2
networks:
default: null
|
@luciangabor could you report a different issue with your last comment? It requires a more complex solution |
@jhrotko it's "a la carte" now, with this issue about the profiles and 3 more (#11606, #11607, #11608) for the default net, the missing validation and the config issues $ docker compose -f - config <<-'EOF'
name: hidden
services:
service:
image: image
profiles:
- hidden
EOF
name: hidden
networks:
default:
name: hidden_default
services:
service:
image: image
networks:
default: null
profiles:
- hidden
# although --services works
$ docker compose -f - config --services <<-'EOF'
name: hidden
services:
service:
image: image
profiles:
- hidden
EOF
|
fixed by #11604 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Whether a service has a profile or not has no effect on
docker compose config
- it always shows all services.Steps To Reproduce
No response
Compose Version
Docker Environment
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: