+ Created docker image with (NOTE ONLY lowercase in image tag) ... sudo docker build -t pmur002/video-poc . - NOTE that I had to edit /etc/default/docker to enable ... DOCKER_OPTS="--dns 130.216.190.1" ... and restart the docker server ... sudo service docker restart ... so that the docker build would use the UoA DNS server (otherwise the build fails at the first apt-update) + To test image interactively (which is useful for testing that various things will run and installing packages interactively before adding them to the Dockerfile) ... sudo docker run -v /home/pmur002/Files/Research/Rstuff/Video/pubs/PoC:/home/work/ -w /home/work --rm -t -i pmur002/video-poc /bin/bash - then can try stuff like ... Xvfb :1 -screen 0 1920x1200x24 & metacity --replace & gnome-terminal & firefox & gnome-screenshot -f test.png + To test image interactively with docker container using (host) desktop X11 screen (e.g., run R and type plot(1) to get an R graphics window) ... # Extra options required to make docker container use desktop X11 screen # AND to get gnome-terminal running within docker container # --net, --env, --volume are for container to use host X11 # --privileged is for gnome-terminal # -rm makes container ephemeral sudo docker run -v /home/pmur002/Files/Research/Rstuff/Video/pubs/PoC:/home/work/ -w /home/work --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" --privileged --rm -t -i pmur002/video-poc /bin/bash + To make image available on DockerHub ... sudo docker login sudo docker push pmur002/video-poc + Build report with ... make docker