localhost
should work in Dockerfile
as ENV HOSTNAME localhost
but currently only 0.0.0.0
like ENV HOSTNAME 0.0.0.0
works
#11219
Labels
Windows Version
Microsoft Windows [Version 10.0.22631.3155]
WSL Version
2.0.14.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3155
Repro Steps
ENV HOSTNAME localhost
from https://sourcegraph.com/search?q=ENV+HOSTNAME+localhost+file%3Adockerfile&patternType=standard&sm=0Expected Behavior
ENV HOSTNAME localhost
should work.It should mimic the behavior of Linux/Mac users on Docker otherwise Windows colleagues will face issues if they clone the same repo making everyone to change it to
0.0.0.0
.Actual Behavior
ENV HOSTNAME 0.0.0.0
works butENV HOSTNAME localhost
doesn't work.Diagnostic Logs
My
.wslconfig
is empty as recommended here & everything else works fine. Just that one change.The text was updated successfully, but these errors were encountered: