An example of a better way with a private temp file: https://github.com/dcommander/virtualgl_docker_examples/blob/vgl_glxspheres-eglbackend/run