Monthly Archives: March 2020

Install Docker on Ubuntu 18.04

Posted on by 0 comment

Docker is very popular tool which creates container in the application development, same software, configuration will be packaged and used for testing and production.

In this exercise, we will install docker in a Ubuntu server

Check Ubuntu version

lsb_release -a

No LSB modules are available.
 Distributor ID: Ubuntu
 Description:    Ubuntu 18.04.3 LTS
 Release:        18.04
 Codename:       bionic

Update package

sudo apt-get update 

Remove old version if exists

sudo apt-get remove docker docker-engine docker.io

Install Docker

sudo apt install docker.io 

Auto start Docker service

sudo systemctl start docker
sudo systemctl enable docker

Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
 Executing: /lib/systemd/systemd-sysv-install enable docker

Check Docker version

docker -v
Docker version 18.09.7, build 2d0083d

Hello world

docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.
Category: Docker