When running docker run --rm --gpus all -it tensorflow/tensorflow:latest-gpu python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
in WSL2 on Windows 11 with Docker Desktop running my 4080 is not detected. It does however work after downgrading the GPU driver to 552.44.
There is a GitHub issue here: TensorFlow Cuda in Docker under WSL2 not wokring · Issue #68710 · tensorflow/tensorflow · GitHub
This has been resolved. See TensorFlow Cuda in Docker under WSL2 not wokring · Issue #68710 · tensorflow/tensorflow · GitHub