Open LTHlidar opened 9 months ago
./container_run.sh fast-lio-ros2 fast-lio-ros2:latest When I ran the above command, I got error : nvidia-docker command not found.
./container_run.sh fast-lio-ros2 fast-lio-ros2:latest
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
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
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.
@LTHlidar Thanks for your report! If you don't mind, could you send me a pull request with the above? With this latest update, it seems that the command nvidia-driver is no longer used.
nvidia-driver
./container_run.sh fast-lio-ros2 fast-lio-ros2:latest
When I ran the above command, I goterror : 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 todocker 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.