Last active
May 14, 2017 04:25
-
-
Save graphaelli/b890bdbe888702b840e4fd4571141fcc to your computer and use it in GitHub Desktop.
firefox in ubuntu 16.04 docker container on mac osx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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