Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
deadcoder0904 opened this issue Feb 28, 2024 · 0 comments
Labels

Comments

@deadcoder0904
Copy link

Windows Version

Microsoft Windows [Version 10.0.22631.3155]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

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

  1. Clone any repo using ENV HOSTNAME localhost from https://sourcegraph.com/search?q=ENV+HOSTNAME+localhost+file%3Adockerfile&patternType=standard&sm=0
  2. Try to run it in Docker on Windows (i'm testing it using WSL2 without Docker Desktop)

Expected 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 but ENV HOSTNAME localhost doesn't work.

Diagnostic Logs

My .wslconfig is empty as recommended here & everything else works fine. Just that one change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants