Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.55 KB

File metadata and controls

71 lines (47 loc) · 1.55 KB

Docker

Youtube

Macos

  • Investigate if colima is useful

Install on linux

Set up the security keys

sudo apt-get update
sudo apt-get install ca-certificates curl gnupg

sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

Add docker repository to apt source

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker itself

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

[Optional] Avoid having to use sudo when running docker

sudo usermod -aG docker $USER`

Launch

Manually in the background without output on the terminal but saving in log file

sudo dockerd > ~/.tmp/docker.log 2>&1 &

Automatically with systemd

sudo systemctl start docker

Kill

sudo systemctl stop docker
sudo systemctl disable docker.service
sudo systemctl disable docker.socket

Check nvidia docker NGC (Nvidia GPU Cloud) NGC