-
Notifications
You must be signed in to change notification settings - Fork 21
Description
./container_run.sh fast-lio-ros2 fast-lio-ros2:latest
When I ran the above command, I got error : nvidia-docker command not found.
in container_run.sh file
nvidia-docker run --privileged -it \ -e NVIDIA_DRIVER_CAPABILITIES=all \ -e NVIDIA_VISIBLE_DEVICES=all \ --volume="$PROJECT_DIR:/root/ros2_ws/src" \ --volume=/data/LIDAR_dataset:/root/data \ --volume=/tmp/.X11-unix:/tmp/.X11-unix:rw \ --net=host \ --ipc=host \ --shm-size=4gb \ --name="$CONTAINER_NAME" \ --env="DISPLAY=$DISPLAY" \ "$IMAGE_NAME" /bin/bash
need to be fixed to
docker run --gpus all --privileged -it \ -e NVIDIA_DRIVER_CAPABILITIES=all \ -e NVIDIA_VISIBLE_DEVICES=all \ --volume="$PROJECT_DIR:/root/ros2_ws/src" \ --volume=/data/LIDAR_dataset:/root/data \ --volume=/tmp/.X11-unix:/tmp/.X11-unix:rw \ --net=host \ --ipc=host \ --shm-size=4gb \ --name="$CONTAINER_NAME" \ --env="DISPLAY=$DISPLAY" \ "$IMAGE_NAME" /bin/bash
After changing it, no errors occurred.