Skip to content

Commit

Permalink
Merge pull request oreillymedia#28 from oreillymedia/gary
Browse files Browse the repository at this point in the history
Gary updated dockerfile
  • Loading branch information
garybradski authored Jun 11, 2017
2 parents 604ff4a + be4c003 commit a1630a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ FROM ubuntu:16.04
#
# Allow other processes to share the display:
# $ xhost + #Allows or other processes to capture (show) the display
# Now run the docker (Usually $DISPLAY is :0) -- you may need sudo privalage
# $ sudo docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /<path_to_a host_directory>/<directory_on_host>/:/<directory_path/name>/ <container_name>
# Now run the docker (Usually $DISPLAY is :0) and allow use of the camera -- you may need sudo privalage
# $ sudo docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \
# --device /dev/video0 \
# -v /<path_to_a host_directory>/<directory_on_host>/:/<directory_path/name>/ <container_name>
#
########################################################################
# This is a docker file which will, from scratch:
Expand Down

0 comments on commit a1630a0

Please sign in to comment.