diff --git a/Dockerfile b/Dockerfile index 9750947..aa83b5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,8 @@ RUN apt-get update && \ RUN curl -LO ftp://ftp.netperf.org/netperf/netperf-2.7.0.tar.gz && tar -xzf netperf-2.7.0.tar.gz RUN cd netperf-2.7.0 && ./configure && make && make install +EXPOSE 12865/udp +EXPOSE 12865/tcp + +USER 1001 CMD ["/usr/local/bin/netserver", "-D"] - diff --git a/README.md b/README.md index 38a310c..e8e7fb7 100644 --- a/README.md +++ b/README.md @@ -29,4 +29,10 @@ Throughput Throughput Stddev Local Microseconds Util % 11198.09 10^6bits/s 32.46 31.51 +``` +Start a local netperf server with Podman: +``` +podman run --rm=true --user=1001 -d --name=netperf paultiplady/netperf +03d764388fa439fa601d2d862e9a4752d86c3c349730a58e72f8f65ec48df3af +```