mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 17:03:56 +08:00
20 lines
409 B
Bash
Executable File
20 lines
409 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 \
|
|
-e QT_X11_NO_MITSHM=1 \
|
|
commaai/openpilot-sim:latest \
|
|
/bin/bash -c "cd /openpilot/tools/sim && ./tmux_script.sh $*"
|