APNIC 56 Network Automation tutorial
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Install Docker Engine

Module 1 - Install Docker Engine

Note: These instructions should be accessed after you have access to your server. Incase you don’t have access, please review this on how to get access.

Install dependencies (last time for now!)

 sudo apt-get update
 sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release

Add Docker’s GPG Key

sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

Add official repo in source.list

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

Install Docker Engine from the repo\

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

Ensure access without root

 sudo usermod -aG docker $USER

Log out of SSH session and login again