Troubles Factory

← Back to cases

Published on Wed Nov 09 2022 14:25:00 GMT+0000 (Coordinated Universal Time) by Leo

How to Install NVIDIA Container Toolkit Offline on Ubuntu or Debian

This guide is for environments without direct internet access, such as private servers, air-gapped machines, or restricted production networks.

Download NVIDIA Container Toolkit DEB Packages

Download packages from:

https://github.com/NVIDIA/libnvidia-container/tree/gh-pages/stable/deb/amd64

Package Type Install Order Notes
libnvidia-container1_1.18.0-1_amd64.deb Required 1 Core library package; all other packages depend on this.
libnvidia-container-tools_1.18.0-1_amd64.deb Required 2 Core tools package; depends on libnvidia-container1.
nvidia-container-toolkit-base_1.18.0-1_amd64.deb Required 3 Base toolkit components; depends on the previous packages.
nvidia-container-toolkit_1.18.0-1_amd64.deb Required 4 Main toolkit package; depends on all required packages above.
libnvidia-container1-dbg_1.18.0-1_amd64.deb Optional - Debug symbols package; only needed for troubleshooting.
libnvidia-container-dev_1.18.0-1_amd64.deb Optional - Development package; only needed for development.

Install the Packages in Dependency Order

Install packages in this order:

sudo dpkg -i libnvidia-container1_1.18.0-1_amd64.deb
sudo dpkg -i libnvidia-container-tools_1.18.0-1_amd64.deb
sudo dpkg -i nvidia-container-toolkit-base_1.18.0-1_amd64.deb
sudo dpkg -i nvidia-container-toolkit_1.18.0-1_amd64.deb

Verify NVIDIA Container Toolkit Installation

Check the installed toolkit version:

nvidia-ctk --version

Set Docker to use the NVIDIA runtime by default

sudo nvidia-ctk runtime configure --runtime=docker

Restart Docker

sudo systemctl restart docker

Written by Leo

← Back to cases
  • How to Fix Docker Logs Error: invalid character 'l' after object key:value pair

    How to Fix Docker Logs Error: invalid character 'l' after object key:value pair

    Fix docker logs error "invalid character 'l' after object key:value pair" by clearing corrupted json-file logs and enabling Docker log rotation.

  • How to Install NVIDIA Container Toolkit Offline on Ubuntu or Debian

    How to Install NVIDIA Container Toolkit Offline on Ubuntu or Debian

    Install NVIDIA Container Toolkit offline on Ubuntu or Debian, including required DEB packages, installation order, Docker runtime setup, and verification.