Public Repository

Last pushed: a year ago
Short Description
create image with ubuntu14.04 with firefox
Full Description

Dockerfile:
FROM ubuntu:14.04
MAINTAINER Fábio Rehm

RUN apt-get update && apt-get install -y firefox

Replace 1000 with your user / group id

RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
chmod 0440 /etc/sudoers.d/developer && \
chown ${uid}:${gid} -R /home/developer

USER developer
ENV HOME /home/developer
CMD /usr/bin/firefox

Build:
docker build -t zdtsw/firefox:<version> .
(make sure always states your repo and image name along with version, otherwise might get error to push out)
Run:
docker run -ti --rm \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
firefox

Docker Pull Command
Owner
zdtsw

Comments (0)