TensorRT installation version issue in docker container


A clear and concise description of the bug or issue.


TensorRT Version: Installation issue
GPU: A6000
Nvidia Driver Version: = 520.61.05
CUDA Version: =11.8
Docker Image: = nvidia/cuda:11.8.0-devel-ubuntu20.04

Im using the docker image nvidia/cuda:11.8.0-devel-ubuntu20.04, when I install tensorrt it upgrades my CUDA version 12.1. I want to stay at 11.8. I tried to target tensorrt to a specific version but that did not work. Is there anyway I can stay on CUDA 11,8 and get tensorrt support?

Dockerfile information:
rom nvidia/cuda:11.8.0-devel-ubuntu20.04


ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y tensorrt

Please refer to the installation steps from the below link if in case you are missing on anything

Also, we suggest you to use TRT NGC containers to avoid any system dependency related issues.


1 Like

Just want to point out that I have an issue open for a similar problem where you can’t install an older version of tensorrt using the steps in the documentation.

Thank you for pointing me to your problem, they are very similar. I just think if you pull down a cuda-11.8 image from NIVIDA installing TensorRT package should not be upgrading cuda version. At the very least It should allow you to install alternative. CUDA 11.8 did run with a version of TensorRT. By the way I can get all the correct package versions our company needs on the metal.

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