Ensure your system is up-to-date:
sudo apt update
Install packages to enable HTTPS communication:
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
Add Docker’s GPG key to verify its packages:
curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
arm64
Add the Docker repository for the arm64
architecture:
echo "deb [arch=arm64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] <https://download.docker.com/linux/ubuntu> $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Refresh the package list to include Docker packages:
sudo apt update
Install Docker engine and its components:
sudo apt install -y docker-ce docker-ce-cli containerd.io
Check Docker version:
docker --version