Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 673 Bytes

File metadata and controls

26 lines (18 loc) · 673 Bytes

Build

docker rm -f px4_ros2_gazebo_yolov8_container 2>/dev/null docker build -t px4_ros2_gazebo_yolov8_image .

Run it

XAUTH=/tmp/.docker.xauth touch $XAUTH xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -

docker run --privileged -it --gpus all
-e NVIDIA_DRIVER_CAPABILITIES=all
-e NVIDIA_VISIBLE_DEVICES=all
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw"
--env="XAUTHORITY=$XAUTH"
--volume="$XAUTH:$XAUTH"
--network=host --ipc=host --shm-size=2gb
--env="DISPLAY=$DISPLAY"
--env="QT_X11_NO_MITSHM=1"
--rm --name px4_ros2_gazebo_yolov8_container
px4_ros2_gazebo_yolov8_image