Open Benedict-CS opened 3 months ago
@Benedict-CS Look at your log...it seems like your port mapping is already in use with some other container or so.
FATA[0000] listen tcp :9579: bind: address already in use source="iperf3_exporter.go:249"
@Technikte This is weird because the only service that listens on port 9579 is the iperf3_exporter.
ben@ben-VirtualBox:~/Desktop$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ben@ben-VirtualBox:~/Desktop$ sudo netstat -tulnp | grep 9579
ben@ben-VirtualBox:~/Desktop$ sudo docker run --rm -d -p 9579:9579 --name iperf3_exporter edgard/iperf3-exporter:latest
9d27701a70eac7fa393bd8009af72cf803c1196cce1232f087610bdf45364c1b
ben@ben-VirtualBox:~/Desktop$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9d27701a70ea edgard/iperf3-exporter:latest "/bin/iperf3_exporter" 9 seconds ago Up 9 seconds 0.0.0.0:9579->9579/tcp, :::9579->9579/tcp iperf3_exporter
ben@ben-VirtualBox:~/Desktop$ sudo netstat -tulnp | grep 9579
tcp 0 0 0.0.0.0:9579 0.0.0.0:* LISTEN 34900/docker-proxy
tcp6 0 0 :::9579 :::* LISTEN 34906/docker-proxy
ben@ben-VirtualBox:~/Desktop$ sudo docker exec -it 9d27701a70ea sh
/ # iperf3_exporter --log.level=debug
INFO[0000] Starting iperf3 exporter(version=0.1.3, branch=v0.1.3, revision=3ec09efe6175e6a8eab46e5c762288a922a29f5c) source="iperf3_exporter.go:218"
INFO[0000] Build context(go=go1.13.8, user="ecastro", date="2020-02-25T18:49:55Z") source="iperf3_exporter.go:219"
INFO[0000] Listening on :9579 source="iperf3_exporter.go:248"
FATA[0000] listen tcp :9579: bind: address already in use source="iperf3_exporter.go:249"
/ #
Browser message:
Log of container:
Error message of container: