From d41a676ab47ee9fdfbbd6c2e867ba4d1011f030f Mon Sep 17 00:00:00 2001 From: Franco Cipollone <53065142+francocipollone@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:47:47 -0300 Subject: [PATCH] Fixes docker-host communication. (#38) Signed-off-by: Franco Cipollone --- docker/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/run.sh b/docker/run.sh index 5025dfe..9763c04 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -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) \