Instructions for building custom docker for NVIDIA Deepstream SDK 6.0.1 fail

Hello,

I’m following the instructions for creating a custom docker for Deepstream SDK applications from here.

When building for dGPU with the command (copypasted from instructive):

docker build -t deepstream:dgpu --build-arg TENSORRT_VERSION="8.0.1-1+cuda11.4" --build-arg CUDNN_VERSION="8.0.1.32-1+cuda11.4" --build-arg CUDA_VERSION="11.4.1" .

I get the following errors:

Sending build context to Docker daemon  6.656kB
Step 1/10 : ARG CUDA_VERSION
Step 2/10 : FROM nvcr.io/nvidia/cudagl:${CUDA_VERSION}-devel-ubuntu18.04
11.4.1-devel-ubuntu18.04: Pulling from nvidia/cudagl
e4ca327ec0e7: Already exists 
878970b21f76: Already exists 
9a07f770c412: Already exists 
49b0351062e3: Already exists 
9f0bae5c7b14: Already exists 
5b01b8a497d5: Already exists 
70b3149412ef: Already exists 
0632beadfe01: Already exists 
1bd3eb8345ae: Already exists 
da36a7c2533d: Already exists 
5d3b6a498208: Already exists 
bc319a18b01c: Already exists 
46f3f6bea947: Already exists 
c603d1a7b59b: Already exists 
Digest: sha256:ddff184559673ab5346d63684c2a815793e9f7921bf68a98ae0cf19396daa15e
Status: Downloaded newer image for nvcr.io/nvidia/cudagl:11.4.1-devel-ubuntu18.04
 ---> 2cd016fddcfb
Step 3/10 : ARG TENSORRT_VERSION
 ---> Running in 8a87c9aad180
Removing intermediate container 8a87c9aad180
 ---> 7d6b52cb11bc
Step 4/10 : ARG CUDNN_VERSION
 ---> Running in b109ad61b928
Removing intermediate container b109ad61b928
 ---> b5e3762cf0b2
Step 5/10 : RUN apt-get update &&       DEBIAN_FRONTEND=noninteractive      apt-get install -y --no-install-recommends       linux-libc-dev       libglew2.0 libssl1.0.0 libjpeg8 libjson-glib-1.0-0       gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-tools gstreamer1.0-libav       gstreamer1.0-alsa       libcurl3       libcurl3-gnutls       libuuid1       libjansson4       libjansson-dev       librabbitmq4       libgles2-mesa       libgstrtspserver-1.0-0       libv4l-dev       gdb bash-completion libboost-dev       uuid-dev libgstrtspserver-1.0-0 libgstrtspserver-1.0-0-dbg libgstrtspserver-1.0-dev       libgstreamer1.0-dev       libgstreamer-plugins-base1.0-dev       libglew-dev       libssl-dev       libopencv-dev       freeglut3-dev       libjpeg-dev       libcurl4-gnutls-dev       libjson-glib-dev       libboost-dev       librabbitmq-dev       libgles2-mesa-dev libgtk-3-dev libgdk3.0-cil-dev       pkg-config       libxau-dev       libxdmcp-dev       libxcb1-dev       libxext-dev       libx11-dev       git       rsyslog       vim        gstreamer1.0-rtsp       libcudnn8=${CUDNN_VERSION}       libcudnn8-dev=${CUDNN_VERSION}       libnvinfer8=${TENSORRT_VERSION}       libnvinfer-dev=${TENSORRT_VERSION}       libnvparsers8=${TENSORRT_VERSION}       libnvparsers-dev=${TENSORRT_VERSION}       libnvonnxparsers8=${TENSORRT_VERSION}       libnvonnxparsers-dev=${TENSORRT_VERSION}       libnvinfer-plugin8=${TENSORRT_VERSION}       libnvinfer-plugin-dev=${TENSORRT_VERSION}       python-libnvinfer=${TENSORRT_VERSION}       python3-libnvinfer=${TENSORRT_VERSION}       python-libnvinfer-dev=${TENSORRT_VERSION}       python3-libnvinfer-dev=${TENSORRT_VERSION} &&       rm -rf /var/lib/apt/lists/* &&       apt autoremove
 ---> Running in f37e1780b247
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Ign:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease
Get:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release [696 B]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [1269 kB]
Get:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release.gpg [836 B]
Get:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Packages [950 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1328 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1486 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [1426 kB]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [884 kB]
Get:15 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2693 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [31.3 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [21.1 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [6610 B]
Get:19 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [177 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [13.5 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [11.3 MB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3132 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1818 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [12.7 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [41.7 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [29.8 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2264 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [918 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [2020 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [12.2 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [12.9 kB]
Get:35 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [12.9 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [12.2 kB]
Fetched 45.2 MB in 32s (1403 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '8.0.1.32-1+cuda11.4' for 'libcudnn8' was not found
E: Version '8.0.1.32-1+cuda11.4' for 'libcudnn8-dev' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvinfer8' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvinfer-dev' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvparsers8' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvparsers-dev' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvonnxparsers8' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvonnxparsers-dev' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvinfer-plugin8' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvinfer-plugin-dev' was not found
E: Unable to locate package python-libnvinfer
E: Version '8.0.1-1+cuda11.4' for 'python3-libnvinfer' was not found
E: Unable to locate package python-libnvinfer-dev
E: Version '8.0.1-1+cuda11.4' for 'python3-libnvinfer-dev' was not found

• Hardware Platform (Jetson / GPU):
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
**• How to reproduce the issue ?

Following instructions from: Docker Containers — DeepStream 6.0.1 Release documentation

Fetched 45.2 MB in 32s (1403 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '8.0.1.32-1+cuda11.4' for 'libcudnn8' was not found
E: Version '8.0.1.32-1+cuda11.4' for 'libcudnn8-dev' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvinfer8' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvinfer-dev' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvparsers8' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvparsers-dev' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvonnxparsers8' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvonnxparsers-dev' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvinfer-plugin8' was not found
E: Version '8.0.1-1+cuda11.4' for 'libnvinfer-plugin-dev' was not found
E: Unable to locate package python-libnvinfer
E: Version '8.0.1-1+cuda11.4' for 'python3-libnvinfer' was not found
E: Unable to locate package python-libnvinfer-dev
E: Version '8.0.1-1+cuda11.4' for 'python3-libnvinfer-dev' was not found

Which versions should be used?
Notes: I understand my docker environment and driver installation are ok, as I can run the deepstream test application in the development docker ( ´nvcr.io/nvidia/deepstream:6.0.1-devel´) with no problems.

Thanks in advance,

Nicolás

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_docker_containers.html#creating-custom-deepstream-docker-for-jetson-using-deepstreamsdk-package

Please refer to Docker Containers — DeepStream 6.0.1 Release documentation (nvidia.com)

1 Like

Hello,

  1. I confirm that I’m building the Dockerfile for dGPU with the versions CUDA_VERSION, TENSORRT_VERSION and CUDNN_VERSION indicated in the procedure.

  2. CUDA_VERSION seems to be ok because the image 11.4.1-devel-ubuntu18.04: is pulled without problems.

  3. The step that fails is 5, when the recipe tries to download libcudnn8, libnvinfer8 and other packages. I understand the sources for APT are set in the reference docker image, so they should point to the right repositories.

Has anybody succeeded to build the dGPU docker using the exact versions indicated in Docker Containers — DeepStream 6.0.1 Release documentation (nvidia.com) ?

Kind regards,

Nicolás

Hello, it seems the problem is that Tensorrt 8.0.1 is incompatible with CUDA 11.4.
You can use Tensorrt 8.0.1 with CUDA 11.0-11.3, or Tensorrt 8.2 with CUDA 11.4.

I faced the same issue in the docker image and created a request for fixing the docker image and the doc: [topic](https://Tensorrt 8.0.1 with CUDA 11.0-11.3)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.