Docker Community Forums

Share and learn in the Docker community.

Transmission fails inside Docker Desktop container on Windows 10 WSL2

Synopsis

When I attempt to run Transmission bittorrent client inside a container, on Docker Desktop, using WSL2 on Windows 10, I get an error message saying:

root@c4ad5b4249cd:/# transmission-cli https://releases.ubuntu.com/21.04/ubuntu-21.04-desktop-amd64.iso.torrent
transmission-cli 2.94 (d8e60ee44f)
[2021-07-26 22:27:39.741] Transmission 2.94 (d8e60ee44f) started
[2021-07-26 22:27:39.741] RPC Server: Adding address to whitelist: 127.0.0.1
[2021-07-26 22:27:39.741] UDP: Failed to set receive buffer: requested 4194304, got 425984
[2021-07-26 22:27:39.741] UDP: Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf
[2021-07-26 22:27:39.741] UDP: Failed to set send buffer: requested 1048576, got 425984
[2021-07-26 22:27:39.741] UDP: Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf
[2021-07-26 22:27:39.741] DHT: Generating new id
[2021-07-26 22:27:40.076] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[2021-07-26 22:27:40.076] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)

After modifying /etc/sysctl.conf in the docker-desktop WSL2 distribution, and restarting WSL using wsl --shutdown, the same behavior occurs.

Question

How can I successfully use Transmission CLI inside a Docker container under Docker Desktop on Windows 10 WSL?

Isn’t this the output inside your docker container? Wouldn’t you need to make those changes to the sysctl config then inside your docker container as well? :wink: