ARTIFACTORY: How to Create a Remote Repository in Artifactory as a Mirror to nvidia-docker

Shai Ben-Zvi
2023-01-22 11:11

The Nvidia repository works differently from a regular Artifactory Debian repository.
To use the Nvidia container runtime for Docker and cache artifacts using Artifactory, you'll need to create a remote repository for every individual repository in your Nvidia-docker. For example, to work with the following:
 "deb https://nvidia.github.io/nvidia-container-runtime/ubuntu16.04/$(ARCH)/"

  1. Create a remote Debian repository and set the URL as: https://nvidia.github.io/nvidia-container-runtime
  2. Update your nvidia-docker.list file, which is located in /etc/apt/nvidia-docker.list, to the following:

deb https://user:password@artifactory-url/artifactory/nvidia-container-runtime/ubuntu16.04/$(ARCH)/       3. sudo apt update

Repeat the steps above for all of the repositories you intend to use. In each repository in Artifactory, the URL should look like following:

Published: Nov. 14, 2018
Last updated: May. 25, 2021

Keywords: debian, nvidia, docker