-
Notifications
You must be signed in to change notification settings - Fork 121
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
ping inside container does not ping actual host ip but seems to ping localhost #57
Comments
Sorry for the delay on this -- it is on our radar and we still hope to be able to fix it. |
What's the news about that issue ? 😅 |
This is nasty one for those of us doing telemetry dev work in docker. Any target fix date or version available? |
@djs55 - where are we on this issue? It seems like a major bug to have open for such a long time. Even if the feedback relates to potential release dates, please indicate when this will be rolled out. |
@djs55 - I see you added the label |
Can confirm that it still there in beta38, |
Just to mention that the same issue affects Docker for Windows too: found it using 1.13.1 under W10Pro while playing with |
like @scara I can confirm this affects Docker for Windows... very confusing! found it trying to track down why i can't talk to a 192.168.2.17 ip with docker bridge network mode. |
Any updates on this? |
Is this being addressed in any upcoming versions. |
This one is killing me too. Does anyone have workarounds? I can't believe this issue has been around since Aug 1, 2016... |
I can confirm tat this problem is present on docker for mac and for windows. Pretty annoying though. |
Sorry for the delay in addressing this. There is an experimental fix in the master branch of Docker for Desktop, but it has not been publicly released yet. If you'd like to try it on the Mac then here's what I just did:
In the Whale menu -> About Docker I see:
Download the attached vpnkit.zip and check the
Then unzip the archive and replace the vpnkit binary:
Then restart Docker for Mac and run some tests. Inside an
Note this code is still experimental so please don't rely too much on it. Feedback would be welcome though! For reference the component PR was moby/vpnkit#271 Thanks again for your patience. |
It should be possible to ping from a container to the Internet on both edge and stable channels, e.g.:
Thanks again for your report! |
I am still unable to ping after following your steps
|
@nicksnyder - I get that regularly. Can you try restarting Docker and see if that resolves your issue? |
Restarting Docker did not help. |
@nicksnyder - My team experiences that behavior regularly, although intermittent. Generally a docker restart resolves the issue, but in cases I have had to rebuild the Docker VM through When I originally experienced the issue (starting in Knowing others are experiences the same, perhaps it's worth investigating further... |
Any progress on this issue? I've the same issues and I'm not able to ping from inside a container. |
I was able to get past this by restarting docker and recreating my containers in Version 2.0.0.0-beta1-mac75 (27117) |
I see this issue is closed but @djs55 you sure Docker for Mac should be able to ping?
|
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
ping
ping times in normal range > 10 ms
Actual behavior
ping
ping times < 1 ms
Information
Event if you ping nonexisting host ip you got the fast ping responses
Diagnostic ID: AFCD161D-F711-4A50-9075-976DD5FE0ACC
Docker for Mac: 1.12.0-beta21 (Build 10868)
macOS: Version 10.11.6 (Build 15G31)
[OK] docker-cli
[OK] app
[OK] moby-syslog
[OK] disk
[OK] virtualization
[OK] system
[OK] menubar
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux
Steps to reproduce
PING 192.30.253.112 (192.30.253.112): 56 data bytes
64 bytes from 192.30.253.112: seq=0 ttl=37 time=0.563 ms
64 bytes from 192.30.253.112: seq=1 ttl=37 time=0.602 ms
64 bytes from 192.30.253.112: seq=2 ttl=37 time=0.627 ms
$ ping github.com
PING github.com (192.30.253.112): 56 data bytes
64 bytes from 192.30.253.112: icmp_seq=0 ttl=48 time=170.933 ms
64 bytes from 192.30.253.112: icmp_seq=1 ttl=48 time=178.581 ms
64 bytes from 192.30.253.112: icmp_seq=2 ttl=48 time=165.428 ms
64 bytes from 192.30.253.112: icmp_seq=3 ttl=48 time=139.794 ms
64 bytes from 192.30.253.112: icmp_seq=4 ttl=48 time=355.255 ms
/ # ping 130.240.1.4
PING 130.240.1.4 (130.240.1.4): 56 data bytes
64 bytes from 130.240.1.4: seq=0 ttl=37 time=25.597 ms
64 bytes from 130.240.1.4: seq=1 ttl=37 time=0.604 ms
64 bytes from 130.240.1.4: seq=2 ttl=37 time=0.563 ms
64 bytes from 130.240.1.4: seq=3 ttl=37 time=0.652 ms
$ ping 130.240.1.4 (non existent)
PING 130.240.1.4 (130.240.1.4): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
The text was updated successfully, but these errors were encountered: