Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

MattKobayashi/docker-iperf2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-iperf2

iPerf2 in an Alpine-based Docker image. Small, lightweight and (most importantly) up-to-date with source.

Running as a server

To run docker-iperf2 as a server in the foreground:

docker run -it --rm --network=host ghcr.io/mattkobayashi/docker-iperf2 --server

Or alternatively, you can run it as a daemon in the background:

docker run -d --name iperf2-server --network=host ghcr.io/mattkobayashi/docker-iperf2 --server

Running as a client

There's a few ways to do this, but the basic gist is:

docker run -it --rm --network=host ghcr.io/mattkobayashi/docker-iperf2 --client <SERVER_IP> <OPTIONS>

Explanatory notes

  • iPerf2 has a lot of tunables and options available (especially on the client side). These are all documented here.

  • The use of network=host is recommended so as to avoid the Docker network proxy and ensure the best possible throughput for test conditions. It is possible to port forward with the Docker proxy, however performance may be affected. For example, you can run a server like this:

    docker run -d --name iperf2-server -p 5201:5201/tcp -p 5201:5201/udp ghcr.io/mattkobayashi/docker-iperf2 --server

About

iPerf2 in an Alpine-based Docker image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published