Python script that prints all devices on bear-metal ubuntu18 (The host) doesn't see those devices in Docker container
Host: Driver Version: 470.141.03 CUDA Version: 11.4
import pyrender
from pyrender.platforms import egl
from OpenGL.EGL import *
devices = egl.query_devices()
print(devices)
The script works (prints all 8 GPUs) when runs on bare metal Ubuntu18 (amd64) but fails on Docker. I tried image built from
FROM nvidia/cudagl:11.4.0-devel-ubuntu18.04
and from
FROM tensorflow/tensorflow:2.7.0-gpu
Also, tried NVIDIA_DRIVER_CAPABILITIES=all and NVIDIA_VISIBLE_DEVICES=all