This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Only the last port is used when there are multiple ports in compose file #1703
Labels
duplicate
This issue or pull request already exists
Description
When I add multiple ports to docker-compose.yaml and run
docker compose up -d
. Only the last port is used. The others are ignored.It works as expected when I use the old one
docker-compose up -d
Steps to reproduce the issue:
docker compose up -d
docker ps -a
and check the ports.Describe the results you received:
Describe the results you expected:
All ports should be used like below:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker context show
:Output of
docker info
:Additional environment details (AWS ECS, Azure ACI, local, etc.):
The text was updated successfully, but these errors were encountered: