There are several docker container examples where appropriate OpenGL version is configured. See for example this topic: