2015-11-23 22:05:19 +01:00
|
|
|
# Run wireshark in a container
|
|
|
|
#
|
|
|
|
# docker run -d \
|
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -e DISPLAY=unix$DISPLAY \
|
|
|
|
# --name wireshark \
|
|
|
|
# jess/wireshark
|
|
|
|
#
|
2016-09-19 20:31:11 +02:00
|
|
|
FROM ubuntu:16.04
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-11-23 22:05:19 +01:00
|
|
|
|
2016-09-21 00:30:55 +02:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2015-11-23 22:05:19 +01:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
software-properties-common \
|
|
|
|
--no-install-recommends && \
|
|
|
|
add-apt-repository ppa:wireshark-dev/stable && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
wireshark \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
ENV HOME /home/wireshark
|
|
|
|
RUN useradd --create-home --home-dir $HOME wireshark \
|
|
|
|
&& chown -R wireshark:wireshark $HOME
|
|
|
|
|
2017-03-09 19:12:44 +01:00
|
|
|
RUN chown root:wireshark /usr/bin/dumpcap \
|
|
|
|
&& setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
|
|
|
|
|
2015-11-23 22:05:19 +01:00
|
|
|
USER wireshark
|
|
|
|
|
|
|
|
WORKDIR wireshark
|
|
|
|
|
|
|
|
ENTRYPOINT [ "wireshark" ]
|