Installing Docker in docker-container running Ubuntu 20.04

Step #1.) Let’s first check, which version of Ubuntu right now we have :-

cat /etc/lsb-release

Step #2.) Next, let’s update with following commands :-

sudo apt-get update

sudo apt-get install \
ca-certificates \
curl \
gnupg \

Step #3.) Next, add Docker’s official GPG key:

curl -fsSL | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Step #4.) Next, use the following command to set up the stable repository. To add the nightly or test repository, add the word nightly or test (or both) after the word stable in the commands below. Learn about nightly and test channels.

echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Step #4.) Next, Install Docker Engine. Update the apt package index, and install the latest version of Docker Engine and containerd :-

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli \

Step #6.) Next, test the docker version :-

docker --version

That’s all in this section. If you liked reading this blog, kindly do press on clap button multiple times, to indicate your appreciation. We would see you in next series.

References :-




Software Engineer for Big Data distributed systems

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

🍉 The First Round Airdrop

Git Cherry-Pick — Selecting Specific Commits to Merge

Git branches

Remote Learning During the Coronavirus Outbreak: How to Stream From Zoom to Thousands

Introduction To Low-Level Design

Performance of Hash Implementations on Various Workloads

Python Classes/Objects

What is Cloud Computing?

How to bypass CloudFlare bot protection ?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
aditya goel

aditya goel

Software Engineer for Big Data distributed systems

More from Medium

Docker for devs with hands-on| Part-3

Working with dynamically created USB devices in Docker

What is Docker?

OpenAPI Tools by OxygenXML