Skip to content

Problem with the Dockerfile #3131

@rahulbhoyar1995

Description

@rahulbhoyar1995

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

1.x branch https://github.com/open-mmlab/mmdetection3d/tree/dev-1.x

Environment

I am using the below Docker file as told in documentation to create a container :

ARG PYTORCH="1.9.0"
ARG CUDA="11.1"
ARG CUDNN="8"

FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel

ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 7.5 8.0 8.6+PTX" \
    TORCH_NVCC_FLAGS="-Xfatbin -compress-all" \
    CMAKE_PREFIX_PATH="$(dirname $(which conda))/../" \
    FORCE_CUDA="1"

# Avoid Public GPG key error
# https://github.com/NVIDIA/nvidia-docker/issues/1631
RUN rm /etc/apt/sources.list.d/cuda.list \
    && rm /etc/apt/sources.list.d/nvidia-ml.list \
    && apt-key del 7fa2af80 \
    && apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub \
    && apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub

# (Optional, use Mirror to speed up downloads)
# RUN sed -i 's/http:\/\/archive.ubuntu.com\/ubuntu\//http:\/\/mirrors.aliyun.com\/ubuntu\//g' /etc/apt/sources.list && \
#    pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

# Install the required packages
RUN apt-get update \
    && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Install MMEngine, MMCV and MMDetection
RUN pip install openmim && \
    mim install "mmengine" "mmcv>=2.0.0rc4" "mmdet>=3.0.0"

# Install MMDetection3D
RUN conda clean --all \
    && git clone https://github.com/open-mmlab/mmdetection3d.git -b dev-1.x /mmdetection3d \
    && cd /mmdetection3d \
    && pip install --no-cache-dir -e .

WORKDIR /mmdetection3d

Reproduces the problem - code sample

However I am not able to create that container

Reproduces the problem - command or script

I have started to create the container out of this Docker image.

Reproduces the problem - error message

This process is just goes on and on :

Building 5107.2s (9/12)                                                                          docker:defaultd
 => => extracting sha256:82a5ac9ac621bb55ada3fd44572cecd6ccbadf7e9c9fa36c99b46e465ef699ff                      0.0s
 => [internal] load build context                                                                              0.0si
 => => transferring context: 2.10kB                                                                            0.0s
 => [2/7] RUN rm /etc/apt/sources.list.d/cuda.list     && rm /etc/apt/sources.list.d/nvidia-ml.list     && ap  5.5s 
 => [3/7] RUN apt-get update     && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 l  44.6s
 => [4/7] RUN pip install openmim &&     mim install "mmengine" "mmcv>=2.0.0rc4" "mmdet>=3.0.0"               93.5sc
 => [5/7] RUN conda clean --all     && git clone https://github.com/open-mmlab/mmdetection3d.git -b dev-1.  4671.0s

Additional information

It seems there is an issue with the version compatibility in the requirements files.

Can you fix this file with right versions ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions