forked from nerdalert/iperf3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (22 loc) · 821 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# iperf3 in a container
#
# Run as Server:
# docker run -it --rm --name=iperf3-srv -p 5201:5201 networkstatic/iperf3 -s
#
# Run as Client (first get server IP address):
# docker inspect --format "{{ .NetworkSettings.IPAddress }}" iperf3-srv
# docker run -it --rm networkstatic/iperf3 -c <SERVER_IP>
#
FROM debian:bullseye-slim
MAINTAINER Brent Salisbury <[email protected]>
# install binary and remove cache
RUN apt-get update \
&& apt-get install -y iperf3 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Expose the default iperf3 server port
EXPOSE 5201
# entrypoint allows you to pass your arguments to the container at runtime
# very similar to a binary you would run. For example, in the following
# docker run -it <IMAGE> --help' is like running 'iperf3 --help'
ENTRYPOINT ["iperf3"]