Deepstream Docker ERROR: failed to solve: runtime not found

Please provide complete information as applicable to your setup.

• Hardware Platform: (Jetson)
• DeepStream Version: 6.2
• JetPack Version (valid for Jetson only): 5.1.2
• TensorRT Version: r8.5.2.2-runtime
• Issue Type: error

I’m trying to build the deepstream container as described in this NVIDIA guide.

I want to build it in an x86/64 Ubuntu and after building it, convert it to a .tar image and move it into a Jetson Nano and run it there. By starting the build using the command docker build --network=host -t deepstream_image:jetson I get the error below:

 => => transferring dockerfile: 5.22kB                                                                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                                                                     0.0s
 => => transferring context: 2B                                                                                                                                                       0.0s
 => ERROR [internal] load metadata for nvcr.io/nvidia/l4t-tensorrt:r8.5.2.2-runtime                                                                                                   4.0s
 => [auth] nvidia/l4t-tensorrt:pull,push token for nvcr.io                                                                                                                            0.0s
------
 > [internal] load metadata for nvcr.io/nvidia/l4t-tensorrt:r8.5.2.2-runtime:
------
Jetson_Dockerfile_Base:16
--------------------
  14 |     # Use L4T tensorrt docker listed on https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-tensorrt/tags
  15 |     # Use r8.5.2.2 for DS 6.2.0
  16 | >>> FROM nvcr.io/nvidia/l4t-tensorrt:r8.5.2.2-runtime
  17 |     
  18 |     #Install vpi-dev and vpi-lib
--------------------
ERROR: failed to solve: nvcr.io/nvidia/l4t-tensorrt:r8.5.2.2-runtime: nvcr.io/nvidia/l4t-tensorrt:r8.5.2.2-runtime: not found

Why does this happen and how to fix it?

I think it’s a documentation error.

you can try use l4t-tensorrt:r8.5.2-runtime.

Here is tensorrt for l4t images.

Another option, Docker for DeepStream is open source, this is link.

Thanks, I did what you suggested, but another error happened:

 => [internal] load .dockerignore                                                                                                                                                     0.1s
 => => transferring context: 2B                                                                                                                                                       0.0s
 => [internal] load build definition from Jetson_Dockerfile_Base                                                                                                                      0.0s
 => => transferring dockerfile: 5.29kB                                                                                                                                                0.0s
 => [internal] load metadata for nvcr.io/nvidia/l4t-tensorrt:r8.5.2-runtime                                                                                                           1.8s
 => CACHED [ 1/28] FROM nvcr.io/nvidia/l4t-tensorrt:r8.5.2-runtime@sha256:17cd2bcce55cf42018c6d76ba71bab52387b145e015e4d2aa2747b1763c82246                                            0.0s
 => CANCELED [internal] load build context                                                                                                                                            0.2s
 => => transferring context: 59.32MB                                                                                                                                                  0.2s
 => ERROR [ 2/28] RUN apt-get update &&         DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         libnvvpi2 vpi2-dev vpi2-samples &&         rm -rf   0.2s
------
 > [ 2/28] RUN apt-get update &&         DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         libnvvpi2 vpi2-dev vpi2-samples &&         rm -rf /var/lib/apt/lists/* &&         apt autoremove:
#0 0.141 exec /bin/sh: exec format error
------
Jetson_Dockerfile_Base:20
--------------------
  19 |     #Install vpi-dev and vpi-lib
  20 | >>> RUN apt-get update && \
  21 | >>>         DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  22 | >>>         libnvvpi2 vpi2-dev vpi2-samples && \
  23 | >>>         rm -rf /var/lib/apt/lists/* && \
  24 | >>>         apt autoremove
  25 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update &&         DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         libnvvpi2 vpi2-dev vpi2-samples &&         rm -rf /var/lib/apt/lists/* &&         apt autoremove" did not complete successfully: exit code: 1

It seems there’s a problem with libnvvpi2 and it doesn’t exist in the apt repository.
I’m using an x86/64 Ubuntu 20.04 on a desktop machine and I want to build the Jetson Docker on it and then transfer the image to a real Jetson Nano device. Is the problem related to this or am I simply missing an apt repository that contains libnvvpi2?

I’ve tried to reproduce the issue and I think it’s a documentation bug.
Sorry for the trouble.

You can try build image through repo in github