How to Install Docker on Ubuntu 18.04 Bionic Beaver

Photo by Pixabay on Pexels.com

Docker is a powerful way to deploy application and server on top of an existing host. Not like traditional virtualization, Docker offers a more sophisticated way to do virtualization. Docker can be installed on almost any modern operating system including Windows and Linux. Today, we are going to learn how to install Docker on Ubuntu 18.04 Bionic Beaver.

Installing Docker on Ubuntu 18.04 is pretty simple and straight forward. Open Terminal or connect to Ubuntu server via SSH and then execute this command to install Docker. There are several way to install Docker on Ubuntu. But the easiest way is to install via Ubuntu repository.

Install Docker via Ubuntu repository

The following steps will install Docker using Ubuntu repository

sudo apt install docker.io

Output:

dhani@ubuntu-server:~$ sudo apt install docker.io
[sudo] password for dhani: 
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following additional packages will be installed:
 bridge-utils cgroupfs-mount libltdl7 ubuntu-fan
Suggested packages:
 ifupdown aufs-tools debootstrap docker-doc rinse zfs-fuse | zfsutils
The following NEW packages will be installed:
 bridge-utils cgroupfs-mount docker.io libltdl7 ubuntu-fan
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 30.2 MB of archives.
After this operation, 137 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

Wait until the installation completed. Next, start and enable Docker.

sudo systemctl start docker
sudo systemctl enable docker

Now let’s check the Docker version

docker --version

Output:

dhani@ubuntu-server:~$ docker --version
Docker version 17.12.1-ce, build 7390fc6

Next, we will learn how to use Docker for the first time. Enough for now, see you on the next tutorial.

1 Trackback / Pingback

  1. Install Portainer, Docker GUI Management Console on Ubuntu 18.04 | Manjaro dot site

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.