Docker Engine adalah teknologi open seource berkaitan dengan kontainerisasi dalam pengembangan aplikasi.
Docker Engine bertindak sebagai aplikasi client server dengan

  1. Docker daemon untuk dockerd
  2. API yang mendefinisikan bagaimana berbicara dengan Docker daemon
  3. CLI atau Command Line Interface client untuk docker .

Instalasi Docker pada Ubuntu 20.04 adalah seperti berikut ini

  1. Update apt
    # apt-get update
    # apt-get install \
        ca-certificates \
        curl \
        gnupg \
        lsb-release
    

  2. Menambahkan Docker GPG Key
    # curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    

  3. Update repository
    # 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
    

  4. Instal Docker Engine
    # apt-get update
    # apt-get install docker-ce docker-ce-cli containerd.io
    
    Setting up docker-ce (5:20.10.12~3-0~ubuntu-focal) ...
    Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
    Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
    Setting up liberror-perl (0.17029-1) ...
    Setting up git (1:2.25.1-1ubuntu3.2) ...
    Processing triggers for systemd (245.4-4ubuntu3.13) ...
    Processing triggers for man-db (2.9.1-1) ...
    Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
    root@odoo-dev:~#
    
    

  5. Testing instalasi dari Docker Engine
    root@odoo-dev:~# docker run hello-world
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    2db29710123e: Pull complete
    Digest: sha256:2498fce14358aa50ead0cc6c19990fc6ff866ce72aeb5546e1d59caac3d0d60f
    Status: Downloaded newer image for hello-world:latest
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    
    To generate this message, Docker took the following steps:
     1. The Docker client contacted the Docker daemon.
     2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
        (amd64)
     3. The Docker daemon created a new container from that image which runs the
        executable that produces the output you are currently reading.
     4. The Docker daemon streamed that output to the Docker client, which sent it
        to your terminal.
    
    To try something more ambitious, you can run an Ubuntu container with:
     $ docker run -it ubuntu bash
    
    Share images, automate workflows, and more with a free Docker ID:
     https://hub.docker.com/
    
    For more examples and ideas, visit:
     https://docs.docker.com/get-started/
    
    root@odoo-dev:~#
    
  6. Instalasi docker-compose
    # curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    # chmod +x /usr/local/bin/docker-compose
    

Informasi lebih lanjut silahkan mengunjungi
1. https://docs.docker.com/engine/install/ubuntu/ .
2. https://docs.docker.com/engine/ .
3. https://docs.docker.com/compose/install/ .
4. https://docs.docker.com/get-started/overview/ .
5. https://docs.docker.com/engine/reference/commandline/cli/ .

Kunjungi www.proweb.co.id untuk menambah wawasan anda.

Instalasi Docker Engine pada Ubuntu 20.04