Expected behavior
docker-compose up should use same automatic naming conventions for service containers under Docker Desktop for Mac and on Linux docker versions.
Actual behavior
On Linux Docker uses underscores (_), while on Docker Desktop for Mac dash (-) is used.
Information
- macOS Version: macOS 12.0.1 (21A559)
- Intel chip or Apple chip: Intel chipset, 2,4 GHz 8-Core Intel Core i9
- Docker Desktop Version: Docker Desktop 4.1.1 (69879)
Steps to reproduce the behavior
- Run
docker-compose up on linux.
- Run
docker-compose up on Mac + Docker Desktop.
- Check the created container names (projectName-serviceName-1 (OSx) vs. projectName_serviceName_1 (linux))
Expected behavior
docker-compose upshould use same automatic naming conventions for service containers under Docker Desktop for Mac and on Linux docker versions.Actual behavior
On Linux Docker uses underscores (
_), while on Docker Desktop for Mac dash (-) is used.Information
Steps to reproduce the behavior
docker-compose upon linux.docker-compose upon Mac + Docker Desktop.