Insight: Install Docker On Ubuntu 18.04 LTS
Docker is an open platform for developers and sysadmins. It is used to build, ship, and run distributed applications.
How To Install Docker On Ubuntu 18.04 LTS : Docker In Ubuntu
Open the terminal in your Ubuntu and run the following commands to install Docker on Ubuntu 18.04. Meanwhile, At first you need to update the packages index and upgrade your Ubuntu.
sudo apt update sudo apt upgrade
After updating and upgrading the system, It time to install the necessary dependencies which you need to enable a new repository over HTTPS:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
Now add Docker’s GPG key and Docker stable repository in your system with the following command:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
After enabling the Docker repository, update the
apt package list and install the latest version of Docker CE (Community Edition) with the following commands:
sudo apt update sudo apt install docker-ce
Finally the installation is done. After installation is completed, the Docker service will start automatically. Just to make sure that it is running, run the command below to see whether Docker is running or not:
sudo systemctl status docker
There will be output like this:
● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2018-09-26 03:22:00 PDT; 2min ago Docs: https://docs.docker.com Main PID: 10647 (dockerd) Tasks: 21 CGroup: /system.slice/docker.service