Have you tried using Openmmlab's dockerfile for mmdetection? https://github.com/open-mmlab/mmdetection/blob/main/docker/Dockerfile I also had the same issue as yours but was able to solve this by using the mmdetection dockerfile. Though I had some minor changes such as using "mmcv>=2.0.0rc4,<2.2.0"