Rider opening duplicate ports with scale
I am trying to scale a service defined in the docker compose file
While the base compose file and the override one do not specify a port: section, Rider is setting this in the docker-compose.generated.override.yml ports:
- "127.0.0.1:57023:57000"
- "127.0.0.1:57223:57200"
- "127.0.0.1:57423:57423"
If I try to set the scale factor to 2 in the configuration settings, I get this error when I try to launch the project in debug mode:
Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint identity.api-2 (684621b7c004fbba9c0990c002166e01cdff23d32efaf44678c4ed366bddb34d): Bind for 127.0.0.1:57023 failed: port is already allocated
Deleting the file is not solving the problem since the file gets auto generated at each launch
System:
Macos 26.4
Rider 2026.1.0.1 (261.22158.394)
Please sign in to leave a comment.