2017-11-06 20:17:00 +01:00
|
|
|
# Usage:
|
|
|
|
# docker run -d \
|
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -e "DISPLAY=unix${DISPLAY}" \
|
2017-11-08 19:56:31 +01:00
|
|
|
# -v /usr/share/X11:/usr/share/X11:ro \
|
2017-11-06 20:17:00 +01:00
|
|
|
# --net host \
|
2017-11-08 19:16:51 +01:00
|
|
|
# --cap-add NET_ADMIN \
|
2017-11-06 20:17:00 +01:00
|
|
|
# --name opensnitch \
|
|
|
|
# r.j3ss.co/opensnitch
|
|
|
|
#
|
|
|
|
FROM r.j3ss.co/opensnitchd:latest
|
|
|
|
|
2017-11-08 22:04:13 +01:00
|
|
|
ENV HOME /home/user
|
|
|
|
RUN useradd --create-home --home-dir $HOME user \
|
|
|
|
&& mkdir -p $HOME/.cache/dconf \
|
|
|
|
&& mkdir -p $HOME/.dbus \
|
|
|
|
&& chown -R user:user $HOME
|
|
|
|
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
|
|
|
USER user
|
|
|
|
|
2017-11-08 21:29:25 +01:00
|
|
|
ENTRYPOINT ["/usr/local/bin/opensnitch-qt", "--debug"]
|