WARNING: The NVIDIA Driver was not detected. GPU functionality will not be available. Use 'nvidia-docker run' to start this container;

when i deploy the NGC pytorch container in docker, a warnning occurs"WARNING: The NVIDIA Driver was not detected. GPU functionality will not be available. Use ‘nvidia-docker run’ to start this container; ", after that I run the cmd to check whether is cuda is available in pytorch workspace, the result is True.
root@31fdd296e497:/workspace# import torch
bash: import: command not found
root@31fdd296e497:/workspace# python
Python 3.6.10 |Anaconda, Inc.| (default, May 8 2020, 02:54:21)
[GCC 7.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import torch
print(torch.cuda.is_available())
True

Why the warnning occurs?

  1. my environment info:

OS: win11+wsl2+ubuntu20.04;
GPU : RTX3080;

  1. nvidia-smi info:
    ±----------------------------------------------------------------------------+
    | NVIDIA-SMI 470.75 Driver Version: 472.19 CUDA Version: 11.4 |
    |-------------------------------±---------------------±---------------------+
    | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
    | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
    | | | MIG M. |
    |===============================+======================+======================|
    | 0 NVIDIA GeForce … Off | 00000000:01:00.0 On | N/A |
    | N/A 36C P8 20W / N/A | 1495MiB / 16384MiB | ERR! Default |
    | | | N/A |
    ±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+