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

Installing Docker

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

My Personal Notes arrow_drop_up

A Computer Science and Engineering undergraduate student at IERT, Allahabad with an interest in Programming, Data Science/AI and web development

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.