Files
sunnypilot/tools/sim/start_openpilot_docker.sh
Tom Dörr 370ba02e6c Add Flags to Control Simulator (#2246)
* Add flags

* Update readme
old-commit-hash: c13c6ef76b
2020-09-29 14:00:03 -07:00

18 lines
380 B
Bash
Executable File

#!/bin/bash
# expose X to the container
xhost +local:root
docker pull commaai/openpilot-sim:latest
docker run --net=host\
--name openpilot_client \
--rm \
-it \
--gpus all \
--device=/dev/dri/ \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--shm-size 1G \
-e DISPLAY=$DISPLAY \
commaai/openpilot-sim:latest \
/bin/bash -c "cd tools && cd sim && sh tmux_script.sh $*"