Skip to content

Instantly share code, notes, and snippets.

@graphaelli
Last active May 14, 2017 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graphaelli/b890bdbe888702b840e4fd4571141fcc to your computer and use it in GitHub Desktop.
Save graphaelli/b890bdbe888702b840e4fd4571141fcc to your computer and use it in GitHub Desktop.
firefox in ubuntu 16.04 docker container on mac osx
FROM ubuntu:16.04
# based on http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/
RUN apt-get update && apt-get install -y firefox
RUN useradd -u 501 -m developer
USER developer
ENV HOME /home/developer
CMD /usr/bin/firefox
# #!/bin/bash -e
# ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
# xhost + $ip
# docker run -ti --rm \
# -e DISPLAY=$ip:0 \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# --ipc=host \
# gui $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment