Skip to content

Commit

Permalink
Replace nvidia-docker to nvidia container toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
Taeyoung96 authored Mar 26, 2024
1 parent 876941c commit 373aa88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/container_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ CONTAINER_NAME="$1"
IMAGE_NAME="$2"

# Launch the nvidia-docker container with the provided image name and tag
nvidia-docker run --privileged -it \
docker run --privileged -it \
--gpus all \
-e NVIDIA_DRIVER_CAPABILITIES=all \
-e NVIDIA_VISIBLE_DEVICES=all \
--volume="$PROJECT_DIR:/root/ros2_ws/src" \
Expand All @@ -32,4 +33,4 @@ nvidia-docker run --privileged -it \
--shm-size=4gb \
--name="$CONTAINER_NAME" \
--env="DISPLAY=$DISPLAY" \
"$IMAGE_NAME" /bin/bash
"$IMAGE_NAME" /bin/bash

0 comments on commit 373aa88

Please sign in to comment.