Docker Community Forums

Share and learn in the Docker community.

Traceroute from docker for mac and docker for windows never traces

docker

(Henrique Vicente) #1

Hi,
on both a docker container derived from the ubuntu image and a docker container derived from the alpine image I have tried to trace route and I have the following result:

bash-4.3# traceroute google.com
traceroute to google.com (216.58.222.78), 30 hops max, 46 byte packets
 1  172.17.0.1 (172.17.0.1)  0.076 ms  0.015 ms  0.015 ms
 2  *  *  *
 3  *  *  *
 4  *  *  *
 5  *  *  *
 6  *  *  *
 7  *  *  *
 8  *  *  *
 9  *  *  *
10  *  *  *
11  *  *  *
12  *  *  *
13  *  *  *
14  *  *  *
15  *  *  *
16  *  *  *
17  *  *  *
18  *  *  *
19  *  *  *
20  *  *  *
21  *  *  *
22  *  *  *
23  *  *  *
24  *  *  *
25  *  *  *
26  *  *  *
27  *  *  *
28  *  *  *
29  *  *  *
30  *  *  *
bash-4.3#

If I run it on a docker container running on Linux, it works as expected. Also, if I do the tracerouting on my own machine it works nice.

After finding this I have managed to reproduce it also inside a (inception scenario) docker container running on docker native for Windows on a Windows vm running on a VMWare Fusion inside my macOS).

This shouldn’t be related, but anyways, I have find this not-too-odd behavior as well while doing my tests: https://github.com/docker/vpnkit/issues/19#issuecomment-256781740