Cara Install Docker Desktop di Ubuntu

By | 24 November 2023

Untuk hari ini saya akan berbagi pengalaman kepada teman-teman bagaimana install docker desktop ke Operasi Sistem Ubuntu.

Pertama, Kita persiapkan dulu docker repositorinya dulu agar bisa mendownload beberapa package yang diperlukan saat install docker desktop.

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

# Add the repository to Apt sources:
echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

Setelah itu dowload package dockernya di website https://docs.docker.com/desktop/install/ubuntu/.

Jika sudah di download, maka tinggal install package nya dengan perintah berikut :

 sudo apt-get update

 sudo apt-get install ./docker-desktop-<version>-<arch>.deb

Jika muncul error seperti dibawah ini bisa diabaikan. Ini bukan berarti docker installnya gagal.

Download is performed unsandboxed as root, as file '/home/user/Downloads/docker-desktop.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Terima kasih dan semoga bermanfaat!!

referensi :

  • https://docs.docker.com/desktop/install/ubuntu/
  • https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository