Setup iperf3 as docker container
Did anyone make this work?
I install the docker container:
docker pull mlabbe/iperf3
docker run --name=iperf3 -d --restart=unless-stopped -p 5201:5201/tcp -p 5201:5201/udp mlabbe/iperf3
The container is up and running, but IP@ is 0.0.0.0
pi@Firewalla:~ (Firewalla) $ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
92c8d6c557bd mlabbe/iperf3 "iperf3 -s" 4 seconds ago Up 3 seconds (health: starting) 0.0.0.0:5201->5201/tcp, 0.0.0.0:5201->5201/udp, :::5201->5201/tcp, :::5201->5201/udp iperf3
Now I can specify my IP address: 192.168.1.1 with
pi@Firewalla:~ (Firewalla) $ sudo docker run --name=iperf3 -d --restart=unless-stopped -p 192.168.1.1:999:999/tcp mlabbe/iperf3
And now:
pi@Firewalla:~ (Firewalla) $ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a653bffc8517 mlabbe/iperf3 "iperf3 -s" 12 seconds ago Up 12 seconds (health: starting) 192.168.1.1:999->999/tcp, 5201/tcp, 5201/udp iperf3
However, I still can not reach out the server, am I missing something here?
-
I'm not sure exactly what you want to do, but if you want to run it at start up you can just do that. You don't need to run a redundant docker container.
https://help.firewalla.com/hc/en-us/articles/360054056754-Customized-Scripting
Please sign in to leave a comment.
Comments
5 comments