aboutsummaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..823d002
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,25 @@
+
+# docker run --rm \
+# --user $(id -u):$(id -g) \
+
+
+# Error with container opening socket
+# https://github.com/jessfraz/dockerfiles/issues/4
+
+
+docker build -t firefox .
+
+xhost local:root
+
+docker run -it \
+ --rm \
+ -v /tmp/.X11-unix:/tmp/.X11-unix \
+ -e DISPLAY=unix"$DISPLAY" \
+ --env PULSE_SERVER=unix:/tmp/pulseaudio.socket \
+ --env PULSE_COOKIE=/tmp/pulseaudio.cookie \
+ --volume /tmp/pulseaudio.socket:/tmp/pulseaudio.socket \
+ --volume /tmp/pulseaudio.client.conf:/etc/pulse/client.conf \
+ --volume /etc/timezone:/etc/timezone:ro \
+ --volume /etc/localtime:/etc/localtime:ro \
+ --name firefox \
+ firefox