Linux container network problem

Expected behavior

I expect the ping to be the same on the host OS than in the docker

Actual behavior

Ping Test done on www.google.com

ping on the host OS : 6ms
ping in the docker : 11ms

Information

  • Windows Version: 10 build 1903
  • Docker Desktop Version: 2.1.4.0

I have a docker with fedora 29 inside.

I observed that the ping in the docker is very high compare to the ping from the host OS.
Even when i ping a site like google, the ping is higher in docker.

I also try the pingwith the fedora remix distribution in WSL 2 and the ping is the same than the host OS (6ms).
WSL use Hyper-V also so i think the problem came from docker VM.

docker network : “bridge”.
network card : vEthernet (Docker NAT)

I try to observe the network flow with wireshark.
On the ethernet adapter i see that the" requets ping" are the same on both Windows and Docker and the response time is the same.
But impossible to observe the packet transfert from “ethernet adapter” to “vEthernet DockerNAT” with wireshark.

This is a big problem for me because i use this docker for transferring file by sshfs and the download speed is 4 times slower with docker than WSL 2.

Do you have some idea ?

Thanks for reading :slight_smile: