Linux

Prerequisites

  • Ensure your system supports Docker and has the NVIDIA driver installed to support GPU.

1.Update Package Index

Copy code
sudo apt-get update

2.Install Required Packages

Copy code
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

3.Add Docker’s Official GPG Key

Copy code
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

4.Set Up Docker Stable Repository

Copy code
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

5.Update Package Index Again

Copy code
sudo apt-get update

6.Install Docker CE

7.Install NVIDIA Container Toolkit

8.Start and Enable Docker Service

9.Verify Installation

Last updated