-
Notifications
You must be signed in to change notification settings - Fork 19
Docker Help
Kashu edited this page Jul 5, 2023
·
3 revisions
- Allow local X11 connections
xhost local:root
- Run docker with options
- Intel GPU
# Run docker image with following options
docker run --device=/dev/dri:/dev/dri \
-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY
- NVIDIA GPU
# Run docker image with following options
docker run --gpus 'all,"capabilities=compute,utility,graphics"' \
-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY
- CPU rendering (without a GPU)
# Run docker image with following options
docker run -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY
In order to copy a file from a container to the host, you can use the command
docker cp <containerId>:/file/path/within/container /host/path/target