Closed oliora closed 2 days ago
@oliora hi! Could you please provide a config file to reproduce the issue? I couldn't reproduce it using Docker Compose version v2.29.7-desktop.1
@idsulik sure, I can reproduce it with the following test.yaml
compose file. Command is docker compose -f test.yaml config --no-interpolate --volumes
.
networks:
localnet:
ipam:
driver: default
config:
- subnet: $LOCAL_NET
services:
frontend:
build: ../../submodules/frontend
restart: unless-stopped
platform: linux/amd64
ports:
- "$LISTEN:$PORT:80"
- "$LISTEN:$PORT_SSL:443"
environment:
HOST_NAME: $HOST_NAME
networks:
localnet:
volumes:
- ./configs/proxy_params:/etc/nginx/proxy_params
- ./configs/nginx-defaults.conf:/etc/nginx/nginx-defaults.conf
@oliora thank you! pushed fix for it https://github.com/docker/compose/pull/12282
Wow, so quick. Thank you!
Description
Running
docker compose config
option--no-interpolate
is not compatible with printing information options like--services
.Running
docker compose -f my_config.yaml config --services
works fine but if I add--no-interpolate
option e.g.docker compose -f my_config.yaml config --services --no-interpolate
then the run fails with error:Same error with using some other printing options e.g.
--volumes
.I understand that without interpolation it may not be possible to print requested information but in such case there should be a more clear error message.
Steps To Reproduce
No response
Compose Version
Docker Environment
Anything else?
No response