How to Install and Configure Docker in Ubuntu?
Docker is a platform and service-based product which utilizes the OS-level virtualization to deliver software in packages called containers. Containers are separated from one another and bundle their own software, libraries and configuration files. Docker is written in Go language. Docker can be installed in two versions of Docker CE(Community Edition) and Docker EE(Enterprise Edition). For small-scale projects, or for learning, we can use Docker CE.
Installing and Configuring Docker in Ubuntu
Step 1: Update Software Repositories using the following command on terminal
$ sudo apt update
Step 2: Install Docker using the following command
$ sudo apt install docker.io
Step 3: Setup Docker run at Startup. Docker service needs to be set up to run at startup.
$ sudo systemctl start docker
$ sudo systemctl enable docker
Step 4: Check Docker Version.
$ docker --version