RuntimeError: Error while calling cudaGetDevice(&the_device_id)

Dlib version: 19.24.2
Dlib CUDA support: True
Testing CUDA with dlib…
CUDA is working with dlib
Traceback (most recent call last):
File “reco_test.py”, line 16, in
import face_recognition
File “/opt/conda/lib/python3.12/site-packages/face_recognition/init.py”, line 7, in
from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File “/opt/conda/lib/python3.12/site-packages/face_recognition/api.py”, line 26, in
cnn_face_detector = dlib.cnn_face_detection_model_v1(cnn_face_detection_model)
RuntimeError: Error while calling cudaGetDevice(&the_device_id) in file /tmp/pip-install-_lwnm3lj/dlib_cdaf9fa2e42744b686fb6710a928ad73/dlib/cuda/gpu_data.cpp:204. code: 999, reason: unknown error

I have docker container.
checking face_Recognition code. I installed dlib gpu support.
python 3.8 am using for process
cuda : 12.4

how to solve this issue?