2022-02-16 03:42:32 +01:00
|
|
|
# nmap podman container image
|
|
|
|
#
|
|
|
|
# Requires rootful podman to access net interfaces
|
|
|
|
#
|
|
|
|
# Note: SELinux requires the :Z attribute set when using volumes in Podman/Docker.
|
|
|
|
#
|
|
|
|
# sudo podman run -it --rm \
|
|
|
|
# --cap-add=NET_RAW \
|
|
|
|
# --cap-add=NET_ADMIN \
|
|
|
|
# --network host \
|
|
|
|
# -v $(pwd):/output:Z \
|
|
|
|
# --name nmap \
|
|
|
|
# nmap <nmap args>
|
|
|
|
|
|
|
|
FROM fedora:latest
|
2022-07-24 00:30:09 +02:00
|
|
|
LABEL maintainer "Jeffrey Serio <hyperreal@fedoraproject.org>"
|
2022-02-16 03:42:32 +01:00
|
|
|
|
|
|
|
RUN printf "fastestmirror=True\ndeltarpm=True\n" | tee -a /etc/dnf/dnf.conf \
|
|
|
|
&& dnf install -y nmap nmap-ncat \
|
|
|
|
&& dnf clean all \
|
|
|
|
&& mkdir /output
|
|
|
|
|
|
|
|
WORKDIR /output
|
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT [ "nmap" ]
|