You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docker-compose container name separator switches between - and _. #24
docker-compose switches between - and _ as a container name separator between releases.
Expected behavior
docker-compose must consistently use - as a container name separator.
Information
Running with Docker Desktop 4.3.0 (71786) on Windows 11, with the WSL2 backend.
Docker Compose V2 is checked in the settings. docker-compose version is v2.2.1.
This seems to have appeared with the 4.3.0 update. It is not noticed unless you rebuild your environment. I.e. existing environments continue to use - as the container name separator.
I had the same issue a couple of months back. That time, it was also fixed with an update.
changed the title [-]Container name separator switches between `-` and `_`.[/-][+]docker-compose container name separator switches between `-` and `_`.[/+]on Dec 9, 2021
@lorenrh Are you sure about transferring the issue? This looks like a packaging issue of docker desktop for windows. Standalone docker-compose releases from the compose repo seem to work fine.
Activity
[-]Container name separator switches between `-` and `_`.[/-][+]docker-compose container name separator switches between `-` and `_`.[/+]m000 commentedon Dec 10, 2021
@lorenrh Are you sure about transferring the issue? This looks like a packaging issue of docker desktop for windows. Standalone docker-compose releases from the compose repo seem to work fine.
lorenrh commentedon Dec 13, 2021
Thanks for the pointer, actually this is an issue relate to the compose-switch used on mac and on Windows. I'll transfer the issue over there.
We've also created an internal ticket to tackle this soon.
mat007 commentedon Dec 13, 2021
This is due to #21
mat007 commentedon Jan 14, 2022
The fix has now been released with Docker Desktop 4.4.2, in case you’re using Desktop.