modify container run command
⚠️ WARNING ⚠️
- mounting
/tmp/.X11-unix
directly is convenient but has some potential drawbacks:
# add to volume mounts
-v /tmp/.X11-unix:/tmp/.X11-unix
# add to env variables
-e DISPLAY=unix:0
# (optional, depends on use case) add to devices
--device /dev/dri:/dev/dri