Files
StarPilot/tools/sim/start_openpilot_docker.sh
T
wolterhv dfb437648e Specify comma containers come from ghcr.io in docker pull commands. (#20342)
old-commit-hash: 5463469f71e7861ccfbbd4d09b8e4ae56b8d3e45
2021-03-14 12:59:05 -07:00

20 lines
417 B
Bash
Executable File

#!/bin/bash
# expose X to the container
xhost +local:root
docker pull ghcr.io/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 \
-e QT_X11_NO_MITSHM=1 \
commaai/openpilot-sim:latest \
/bin/bash -c "cd /openpilot/tools/sim && ./tmux_script.sh $*"