Skip to content

Instantly share code, notes, and snippets.

@nim65s
Last active May 13, 2020 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nim65s/380899c6759d38cfdc7893eb2d36558e to your computer and use it in GitHub Desktop.
Save nim65s/380899c6759d38cfdc7893eb2d36558e to your computer and use it in GitHub Desktop.
Check OpenGL on Docker with NVidia
FROM nvidia/opengl:1.0-glvnd-runtime-ubuntu18.04
RUN apt-get update -qqy && apt-get install -qqy mesa-utils
CMD glxgears
@nim65s
Copy link
Author

nim65s commented May 13, 2020

Run with:

xhost +local:
docker build -t opengl .
docker run --rm -e DISPLAY --net=host --runtime=nvidia opengl

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