desktop-linux icon indicating copy to clipboard operation
desktop-linux copied to clipboard

Download speed from container to host is incredibly slow

Open Nacoma opened this issue 3 years ago • 6 comments

Network throughput is extremely poor between the host and container. It appears to be capped at about 1400kb/s in all of my tests. I've linked a repository that reliably reproduces it (for me, at least) below.

  • [x] I have tried with the latest version of Docker Desktop
  • [x] I have tried disabling enabled experimental features
  • [x] I have uploaded Diagnostics
  • Diagnostics ID: 0deb727b-5be2-42e5-895b-87de4c0c2941/20221128193150

Expected behavior

Network throughput between the container and host should not be so slow.

Actual behavior

It is slow.

Information

I am able to reproduce it reliably using the following repo: https://github.com/Nacoma/docker-desktop-for-linux-network-speed-issue. A few other users have reported the same issue on similar Linux distributions.

For me, this has been an ongoing issue since I first switched from snap-docker. Another coworker didn't start having the issue until a few weeks ago.

  • Linux distro: Ubuntu
  • Distro version: 22.04.1 LTS
  • Docker Desktop Version: 4.14.1 (91661)

Nacoma avatar Nov 28 '22 19:11 Nacoma

hi @Nacoma, thanks for reporting the issue, and sorry for the inconvenience. Could you try changing useVpnkit in ~/.docker/desktop/settings.json to false?

p1-0tr avatar Nov 29 '22 13:11 p1-0tr

Significantly improved performance. That seems to have resolved my issue. Feel free to close this if there's nothing to be done about the performance when using vpnkit.

Nacoma avatar Nov 29 '22 18:11 Nacoma

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robott avatar Feb 28 '23 01:02 docker-robott

I have a similar issue where my max speed has been less than 100 Mbps. With the above suggestion, I can get a max of 130 Mbps. I am running on a 1 Gig network. The data transfer is between two containers that are on different machines. I can do file transfer between the two computers at almost 950 Mbps.

hhashim1 avatar Mar 27 '23 20:03 hhashim1

hi I'm facing the same issue , running docker on WSL 2 , even after making the above mentioned change its the same for me .

I'm not sure if it has to do with a specific container , i get full bandwidth when testing in Openspeedtest container

Please help

ajax1337 avatar Oct 07 '23 06:10 ajax1337

I am having the same issue on mac, how can I solve it please

olacodes avatar Nov 01 '23 17:11 olacodes