diff options
author | Cody Hiar <codyfh@gmail.com> | 2019-01-25 17:23:05 -0700 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2019-01-25 17:23:05 -0700 |
commit | 00e4cdfee76dbe55c391ae3d0fba5e994954f57e (patch) | |
tree | 72d015cc5109573f48ed90d4e0a79610ef31d35a /run.sh |
wip
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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 |