- Update Repository
sudo apt update
- Install Package Yang diperlukan
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
- Tambah GPG Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- Tambah Docker repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- Pastikan sumber
apt-cache policy docker-ce
- Install Docker
sudo apt install docker-ce -y
- Cek status Docker
sudo systemctl status docker