Skip to content
Andrei Montchik edited this page Jul 11, 2024 · 22 revisions

Docs

  1. sudo apt update
  2. sudo apt install ca-certificates
  3. Add Docker's official GPG key:
    1. Set permissions to the /etc/apt/keyrings directory: sudo install -m 0755 -d /etc/apt/keyrings
    2. Load the Docker GPG key: sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
    3. Update the loaded key permissions: sudo chmod a+r /etc/apt/keyrings/docker.asc
  4. Add Docker repository to the apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null     
  1. sudo apt update
  2. Install the latest Docker version: sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  3. Verify the installation: sudo docker run hello-world

Clone this wiki locally