"docker pull nvidia/cuda" - Download Docker Image

Q

How to pull NVIDIA CUDA Docker Image with the "docker image pull nvidia/cuda" command?

✍: FYIcenter.com

A

If you are running a Docker container on you NVIDIA GPU server, you can get a CUDA environment as a Docker container from the NVIDIA CUDA Docker images by following these steps.

1. Download NVIDIA CUDA Docker image from the registry. But you need to specify which version you want to download.

fyicenter# docker image pull nvidia/cuda
  Using default tag: latest
  Error response from daemon: manifest for nvidia/cuda:latest not found: 
  manifest unknown: manifest unknown

fyicenter# docker pull nvidia/cuda:11.0-base
  11.0-base: Pulling from nvidia/cuda
  54ee1f796a1e: Pull complete 
  f7bfea53ad12: Pull complete 
  46d371e02073: Pull complete 
  b66c17bbf772: Pull complete 
  3642f1a6dfb3: Pull complete 
  e5ce55b8b4b9: Pull complete 
  155bc0332b0a: Pull complete 
  Digest: sha256:774ca3d612de15213102c2dbbba55df44dc5cf9870ca2be6c6e9c627fa63d67a
  Status: Downloaded newer image for nvidia/cuda:11.0-base
  docker.io/nvidia/cuda:11.0-base

2. List the image file.

fyicenter# docker images 

REPOSITORY    TAG         IMAGE ID       CREATED         SIZE
alpine        latest      021b3423115f   7 days ago      5.6MB
nvidia/cuda   11.0-base   2ec708416bb8   11 months ago   122MB

3. Run "nvidia/cuda" with a shell session interactively.

fyicenter# docker run -it nvidia/cuda:11.0-base /bin/bash 

root@76bb93cc424f:/# cat /etc/*elease
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=20.04
  DISTRIB_CODENAME=focal
  DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

As you can see, we have downloaded the NVIDIA CUDA Docker, which is actually based Ubuntu 20.04.

 

Install Miniconda3 on nvidia/cuda Docker

What Is NVIDIA CUDA Docker Image

NVIDIA GPU Server Docker Image

⇑⇑ Docker Container Platform - Tutorials

2023-03-07, 8922🔥, 0💬