Indeks Artikel

 

 

3. Setup Docker

Apa itu Docker? Bisa dilihat di https://youtu.be/1S2C9eVqhb4

  • Initial Setup

$ sudo apt update

$ sudo apt upgrade

 

  • Install aplikasi-aplikasi yang diperlukan

$ sudo apt install apt-transport-https ca-certificates curl software-properties-common

 

  • Tambahkan GPG key of Docker repository

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

 

  •  Tambahkan Docker repository ke Ubuntu to the apt sources

$ echo "deb [arch=$(dpkg --print-architecture) 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

 

  •  Install Docker

$ sudo apt update | sudo apt-cache policy docker-ce

$ sudo apt install docker-ce

 

  • Check docker status

$ sudo systemctl status docker

 

  • Configure sudo permission for docker, jadi kita tidak perlu menggunakan perintah sudo ketika menjalankan perintah docker

$ sudo usermod -aG docker username

 

LOG OFF / RESTART