Last active
May 13, 2020 14:17
-
-
Save nim65s/380899c6759d38cfdc7893eb2d36558e to your computer and use it in GitHub Desktop.
Check OpenGL on Docker with NVidia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nvidia/opengl:1.0-glvnd-runtime-ubuntu18.04 | |
RUN apt-get update -qqy && apt-get install -qqy mesa-utils | |
CMD glxgears |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with:
xhost +local: docker build -t opengl . docker run --rm -e DISPLAY --net=host --runtime=nvidia opengl