Anda di referensikan oleh RAFIF_IBRA
[Pelajari Lebih Lanjut]

Keranjang Belanja


Keranjang kosong
Menu [klik disini]

Docker is an application that simplifies the process of managing application processes in containers. Containers let you run your applications in resource-isolated processes. They’re similar to virtual machines, but containers are more portable, more resource-friendly, and more dependent on the host operating system.

In this tutorial, you’ll install and use Docker Community Edition (CE) on Ubuntu 20.04 Focal Fossa. 


1. Add the GPG key for the official Docker repository to your system:

$ curl -fsSL | sudo apt-key add -


2. Add the Docker repository to APT sources:

$ sudo add-apt-repository "deb [arch=amd64] focal stable"


3. Update the package database with the Docker packages from the newly added repo:

$ sudo apt update


4. Install a few prerequisite packages which let apt use packages over HTTPS:

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


5. Make sure you are about to install from the Docker repo instead of the default Ubuntu repo:

$ apt-cache policy docker-ce


6. Finally, install Docker:

$ sudo apt install docker-ce


7. Docker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running:

$ sudo systemctl status docker


8. Executing the Docker Command Without Sudo (Optional)

$ sudo usermod -aG docker {USER}


You need to log out and log in again

9. Install Portainer, run your first container

Portainer is a lightweight management UI which allows you to easily manage your different Docker environments (Docker hosts or Swarm clusters).

$ docker volume create portainer_data | docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce


Now open browser and navigate to http://localhost:9000