Skip to content

Commit 2157385

Browse files
authored
fix(docker_run): fix bug when try to run without cam (#34)
1 parent 55eea4d commit 2157385

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

docker_run

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ if [ $# -eq 0 ]
55
then
66
# No camera id argument supplied
77
echo "running with no attached camera"
8-
docker run \
9-
--rm \ # Remove container after execution
10-
-v vss-vision-config:/opt/vss-vision/src/Config \ # Mount volume to store config files
11-
-v /tmp/.X11-unix:/tmp/.X11-unix \ # Mount X11 socket
12-
-e DISPLAY=$DISPLAY \ # Set display
13-
--network=host \ # Use host network
14-
vss-vision # Image name
8+
docker run --rm -v vss-vision-config:/opt/vss-vision/src/Config -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY --network=host vss-vision
159
else
1610
echo "setting camera /dev/video$1"
1711
# Camera id argument supplied

0 commit comments

Comments
 (0)