Skip to content

Conversation

@Rezenders
Copy link

Add Dockerfile for project11

Build image:

docker build -t project11 .

Allow access to display:

xhost +local:root

Run image:

docker run -it --rm  -e DISPLAY=$DISPLAY  -e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix -v /etc/localtime:/etc/localtime:ro project11

Run image with nvidia support (needs nvidia-toolkit):

docker run -it --rm --runtime=nvidia --gpus all  -e DISPLAY=$DISPLAY  -e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix -v /etc/localtime:/etc/localtime:ro project11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant