在容器中如果在开启类似 pygame
之类的弹窗后,如果有以下错误
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: Version 4 or later of flush extension not found
libGL error: failed to load driver: i915
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: i965
可以在对应的 docker-compose.yaml
增加
privileged: true
字段来解决该问题。