Skip to content

Install Docker On Ubuntu For API Maker

Install Docker

apt-get remove docker docker-engine docker.io containerd runc
apt-get update

apt-get install -y ca-certificates=20211016ubuntu0.22.04.1
apt-get install -y curl=7.81.0-1ubuntu1.7
apt-get install -y gnupg=2.2.27-3ubuntu2.1
apt-get install -y lsb-release=11.1.0ubuntu4

mkdir -p /etc/apt/keyrings
rm -rf /etc/apt/keyrings/docker.gpg
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor --batch --yes -o /etc/apt/keyrings/docker.gpg
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

chmod a+r /etc/apt/keyrings/docker.gpg
apt-get update

apt-get install -y docker-ce=5:23.0.1-1~ubuntu.22.04~jammy
apt-get install -y docker-ce-cli=5:23.0.1-1~ubuntu.22.04~jammy
apt-get install -y containerd.io=1.6.18-1
apt-get install -y docker-compose-plugin=2.16.0-1~ubuntu.22.04~jammy
apt-get install -y docker-compose=1.29.2-1