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

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 3rd-year 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 contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. 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.