I don’t seem to be able to get full network speed from a Rocky 8 linux container running on Windows 10.
I can do a wget https://download.jetbrains.com/idea/ideaIU-2024.2.1.exe from the container and get ~30MB/s. Doing the same command, before or after, from a WSL instance gives me full speed, ~100MB/s. This is telling me that the issue may not be in Windows or WSL.
Another test, I can transfer files across the local network. I will get ~100MB/s locally, but the same ~30MB/s in the container across a sshfs connection.
I have enabled Host networking in Docker Desktop and relaunched the container clean but it made no difference.
Looking at Task Manager, Performance, some WSL traffic goes through the vEthernet (WSL) adapter. Looks like the Docker traffic is going through the primary Ethernet adapter. Speeds shown for the primary Ethernet adapter agree with what I see from testing.
Is this a Docker problem? I’ve examined ifconfig and ethtool output, but nothing jumps out at me as being a cause.
C:>docker version
Client:
Version: 27.1.1
API version: 1.46
Go version: go1.21.12
Git commit: 6312585
Built: Tue Jul 23 19:57:57 2024
OS/Arch: windows/amd64
Context: desktop-linux
Server: Docker Desktop 4.33.1 (161083)
Engine:
Version: 27.1.1
API version: 1.46 (minimum version 1.24)
Go version: go1.21.12
Git commit: cc13f95
Built: Tue Jul 23 19:57:19 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.19
GitCommit: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
runc:
Version: 1.7.19
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0