Skip to content

Commit

Permalink
Fixes docker-host communication. (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: Franco Cipollone <[email protected]>
  • Loading branch information
francocipollone authored Apr 24, 2024
1 parent 4c2f6bd commit d41a676
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ if sudo -g docker docker container ls -a | grep "${CONTAINER_NAME}$" -c &> /dev/
fi

xhost +
sudo docker run --privileged --net=host -it $NVIDIA_FLAGS \
sudo docker run -it --privileged --net=host --ipc=host --pid=host -it \
$NVIDIA_FLAGS \
-e DISPLAY=$DISPLAY \
-e SSH_AUTH_SOCK=$SSH_AUTH_SOCK_USER \
-v $(dirname $SSH_AUTH_SOCK_USER):$(dirname $SSH_AUTH_SOCK_USER) \
Expand Down

0 comments on commit d41a676

Please sign in to comment.