给不便于安装和运行二进制文件的系统(例如群晖 DSM)或想通过 Docker 部署服务端后台运行使用
同步推送到 GHCR 和 Docker Hub
- 版本 3.19 (3.19.1-r1 2025-10-18 08:34:04)
sudo docker pull ghcr.io/driftingwind/iperf3:latest或
sudo docker pull ghcr.io/driftingwind/iperf3:stable- 版本 3.20 (3.20-r0 2026-02-05 21:45:58)
sudo docker pull ghcr.io/driftingwind/iperf3:edge- 服务端参考
docker-compose.yml
services:
iperf3:
image: ghcr.io/driftingwind/iperf3
container_name: iperf3
restart: unless-stopped
ports:
- 5201:5201
- 5201:5201/udp
command: -s- 服务端参考命令行
sudo docker run --rm -p 5201:5201 -p 5201:5201/udp -it ghcr.io/driftingwind/iperf3 -s - 客户端参考命令行
sudo docker run --rm -it ghcr.io/driftingwind/iperf3 -c <host>- iPerf.fr (https://iperf.fr/)
- ESnet (https://software.es.net/iperf/)
- 官方仓库 (https://github.com/esnet/iperf)