Cannot start base nvidia's docker images on Jetpack 4.6.2

  • I experienced NX with jetpack 4.6 (rev3), and run the command docker run -it --rm --net=host --runtime nvidia --name vizgard -e DISPLAY=$DISPLAY -p 8000:8000 -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/l4t-base:r32.6.1and higher versions of base image like l4t-base:r32.7.1 and nvidia-l4t-base:r34.1.1.
  • But when i moved into new version of Jetpack (4.6.2), the above command seem not work anymore. I got the below error. Before that, i also added a line "default-runtime": "nvidia" in the /etc/docker/daemon.json file and installed nvidia-container-runtime. Did i missed any steps in the new Jetpack version to make the above command work?
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #0:: error running hook: exit status 1, stdout: src: /usr/lib/aarch64-linux-gnu/libnvinfer.so.8, src_lnk: libnvinfer.so.8.2.1, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libnvinfer.so.8, dst_lnk: libnvinfer.so.8.2.1
src: /usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so.8, src_lnk: libnvinfer_plugin.so.8.2.1, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so.8, dst_lnk: libnvinfer_plugin.so.8.2.1
src: /usr/lib/aarch64-linux-gnu/libnvparsers.so.8, src_lnk: libnvparsers.so.8.2.1, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libnvparsers.so.8, dst_lnk: libnvparsers.so.8.2.1
src: /usr/lib/aarch64-linux-gnu/libnvonnxparser.so.8, src_lnk: libnvonnxparser.so.8.2.1, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libnvonnxparser.so.8, dst_lnk: libnvonnxparser.so.8.2.1
src: /usr/lib/aarch64-linux-gnu/libnvinfer.so, src_lnk: libnvinfer.so.8.2.1, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libnvinfer.so, dst_lnk: libnvinfer.so.8.2.1
src: /usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so, src_lnk: libnvinfer_plugin.so.8.2.1, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so, dst_lnk: libnvinfer_plugin.so.8.2.1
src: /usr/lib/aarch64-linux-gnu/libnvparsers.so, src_lnk: libnvparsers.so.8.2.1, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libnvparsers.so, dst_lnk: libnvparsers.so.8.2.1
src: /usr/lib/aarch64-linux-gnu/libnvonnxparser.so, src_lnk: libnvonnxparser.so.8, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libnvonnxparser.so, dst_lnk: libnvonnxparser.so.8
src: /etc/vulkan/icd.d/nvidia_icd.json, src_lnk: /usr/lib/aarch64-linux-gnu/tegra/nvidia_icd.json, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/etc/vulkan/icd.d/nvidia_icd.json, dst_lnk: /usr/lib/aarch64-linux-gnu/tegra/nvidia_icd.json
src: /usr/lib/aarch64-linux-gnu/libcuda.so, src_lnk: tegra/libcuda.so, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libcuda.so, dst_lnk: tegra/libcuda.so
src: /usr/lib/aarch64-linux-gnu/libdrm_nvdc.so, src_lnk: tegra/libdrm.so.2, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libdrm_nvdc.so, dst_lnk: tegra/libdrm.so.2
src: /usr/lib/aarch64-linux-gnu/libv4l2.so.0.0.999999, src_lnk: tegra/libnvv4l2.so, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libv4l2.so.0.0.999999, dst_lnk: tegra/libnvv4l2.so
src: /usr/lib/aarch64-linux-gnu/libv4lconvert.so.0.0.999999, src_lnk: tegra/libnvv4lconvert.so, dst: /var/lib/docker/overlay2/3e6c888dab4c4312be47dc1fcaf2690f5542fe7e772f12774ed87f210863a3df/merged/usr/lib/aarch64-linux-gnu/libv4lconvert.so.0.0.999999, dst_lnk: tegra/libnvv4lconvert.so
, stderr: nvidia-container-cli: mount error: stat failed: /usr/lib/python3.6/dist-packages/onnx_graphsurgeon: no such file or directory: unknown.

Hi,

Do you install JetPack components on your device?
It seems that the docker fails to mount the TensorRT (libnvinfer.so) libraries.

Thanks.

@AastaLLL, thanks for your response.

Do you install JetPack components on your device?

yes, I did

I’m closing this topic due to there is no update from you for a period, assuming this issue was resolved.
If still need the support, please open a new topic. Thanks

Hi,

Could you share your environment information with the following command with us first?

$ apt show nvidia-jetpack
$ apt show nvidia-container

Thanks.