Cara install Docker di Ubuntu

Tutorial install Docker di Ubuntu Linux untuk lingkungan produksi. Rekomendasi versi operasi sistem Linux:

  • Ubuntu 18.04 LTS
  • Ubuntu 20.04 LTS
  • Ubuntu 22.04 LTS

Install paket

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

Menambahkan GPG key Docker

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

Setup repository

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

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

Selesai, semoga bermanfaat.

One thought on “Cara install Docker di Ubuntu

Add a comment