-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
compose-spec/compose-go
#552Labels
Description
Description
In v2.24.0
there is a regression when using an override file to reset a network to its default state. This used to work all the way up to v2.23.3
.
My use-case for this scenario is to use a specific docker network name when running in production (using the docker-compose.yml
file) while using the auto-generated network name when running in development (using the docker-compose.override.yml
file).
Steps To Reproduce
- Create
docker-compose.yml
services:
test:
image: hello-world
networks:
test:
networks:
test:
name: test
external: true
- Create
docker-compose.override.yml
networks:
test:
- Run
docker compose up
and observe exit code 15 with error message "cannot override networks.test"
Compose Version
First broken version: v2.24.0
Last good version: v2.23.3
Docker Environment
No response
Anything else?
No response