February 4, 20251 yr Ive Unraid 7, running a number of docker containers. I have Grafana,speedfux, telegraf and influx as one of my groups so I can monitor my servers and other equipment. I wanted to run site to site testing, and I can do this with iperf3 as an action in the command line, and having a version of iperf3 running as a server to be permanently listening. I went to setup a command line request in the telegraf docker config file, and found that iperf3 isnt in the usr/bin folder, so I cant run it. How can I run iperf3 in the docker as a command line request used in telegraf??? any ideas??? thanks in advance.
February 5, 20251 yr Community Expert Solution use lxc move your dockers to teh lxc for applciation to installer adtional packages. Docker is desinged to remove all non essential packages. if its ubuntu/debain based.. # Use your base Docker image (replace with your custom image) FROM your-docker-image:latest # Install iperf3 RUN apt-get update && apt-get install -y iperf3 && rm -rf /var/lib/apt/lists/* # Expose the iPerf3 server port EXPOSE 5201 # Run iPerf3 server by default CMD ["iperf3", "-s"] you can grab your telgraph docker image and pull it and the add the binary and 3rdparty docker run your own docker image.... But for ease of managment your better off installing telgraph etc in a vm/lxc... that way you can install extra binaries..
February 7, 20251 yr Author Doh! Thanks makes sense, just out of practice with docker... been working too much on microcontrollers this last year! I think I'll try lxc... not used it before so will be educational!!! thanks for the direction.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.