Skip to content

Instantly share code, notes, and snippets.

@tommynyquist
Created October 14, 2015 20:31
Show Gist options
  • Save tommynyquist/ae30c1e32153b99a3100 to your computer and use it in GitHub Desktop.
Save tommynyquist/ae30c1e32153b99a3100 to your computer and use it in GitHub Desktop.
##### Dockerfile
FROM ubuntu
RUN apt-get update && apt-get install -yq xvfb
ENTRYPOINT ["xvfb-run", "-a", "/bin/sleep" ]
CMD ["10000"]
##### Result of docker exec -it container_name ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 35 0.0 0.0 15560 1100 ? Rs+ 20:27 0:00 ps auxf
root 1 0.1 0.0 4440 716 ? Ss 20:27 0:00 /bin/sh /usr/bin/xvfb-run -a /bin/sleep 10000
root 16 0.7 0.0 266644 12992 ? Sl 20:27 0:00 Xvfb :99 -screen 0 640x480x8 -nolisten tcp -auth /tmp/xvfb-run.RU0s0T/Xauthority
#####
##### Dockerfile
FROM ubuntu
RUN apt-get update && apt-get install -yq xvfb
CMD xvfb-run -a /bin/sleep 10000
##### Result of docker exec -it container_name ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 37 0.0 0.0 15560 1096 ? Rs+ 20:29 0:00 ps auxf
root 1 0.4 0.0 4440 652 ? Ss 20:29 0:00 /bin/sh -c xvfb-run -a /bin/sleep 10000
root 5 0.0 0.0 4440 716 ? S 20:29 0:00 /bin/sh /usr/bin/xvfb-run -a /bin/sleep 10000
root 17 1.9 0.0 266648 12996 ? Sl 20:29 0:00 \_ Xvfb :99 -screen 0 640x480x8 -nolisten tcp -auth /tmp/xvfb-run.RqHGWv/Xauthority
root 36 0.0 0.0 4340 356 ? S 20:29 0:00 \_ /bin/sleep 10000
#####
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment