Docker Community Forums

Share and learn in the Docker community.

The override file is ignored after upgrading docker for windows

After I upgraded my docker for windows, it ignores the override file for creating the containers and assign random port numbers for containers.

Here is the version information :

Client: Docker Engine - Community
Cloud integration: 1.0.9
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Git commit: 55c4c88
Built: Tue Mar 2 20:14:53 2021
OS/Arch: windows/amd64
Context: default
Experimental: true

Here is the command that I use :
docker-compose -f “docker-compose.yml” -f “docker-compose.override.yml” -f “docker-compose.vs.debug.g.yml” -f “docker-compose.vs.debug.yml” -p dockercompose2416442517961025023 --no-ansi up -d --no-build

version: ‘3.4’

- “8001:80”
- “8002:443”
- sqlserver

It used to always map to port 8001 and 8002, but now, it assigns random ports.