mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 12:32:06 +08:00
260ff8cd46
old-commit-hash: 459aa1123d0bd7d6715951c4f8007c34ae83ac1a
18 lines
377 B
Bash
Executable File
18 lines
377 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"
|