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
docker run --add-host=NAME:host-gateway does not work #211124
Comments
This sounds like upstream bug? |
I have it working on Ubuntu, macOS, etc. That's what I thought it may be something NixOS specific, but I can't put my finger on it just yet. |
I am also having this issue. |
Does this issue still appear? Built a system using
|
I am running the same versions and do see test mapped in. I can ping test but I cannot curl a website running on the host. |
Do you have firewall enabled but Docker interface not added into |
That does fix the issue. Thank you |
I suppose that this problem has disappeared and issue can now be closed. |
I have faced this issue. |
Describe the bug
When trying to use the
add-host
feature from Docker, I get annil
entry in/etc/hosts
inside of the containerSteps To Reproduce
Steps to reproduce the behavior:
docker run -ti --add-host=test:host-gateway ubuntu:latest
cat /etc/hosts
Expected behavior
/etc/hosts
should contain a mapping between host's IP andtest
Notify maintainers
@offline @tailhook @vdemeester @periklis @mikroskeem @maxeaubrey
Metadata
The text was updated successfully, but these errors were encountered: