How to Install Docker in Ubuntu 21.04 Using Official Repository | Part - 3 Method - 2

Опубликовано: 12 Апрель 2026
на канале: Learn Computer Technologies
1,037
9

You can install Docker Engine in different ways. Here we will learn the four methods of installation of Docker in Ubuntu 21.04
Method – 1: Installation of Docker Using Official Repository. This is the recommended approach.
Method – 2: Installation of Docker Using Ubuntu OS Default Repositories apt.
Method – 3: Installation of Docker Using a .deb Package from Docker Official Website This method is the recommended when no internet available.
Method – 4: Installation of Docker Using Convenience Script.

commands used in this video for your reference. You can copy from here.
$ sudo apt-get update
$ sudo apt-get install docker.io
$ docker ps
$ docker pull pihole/pihole
$ docker container run -d -i -t -p 80:80 --rm pihole/pihole
$ docker container stop [Paste your container ID here.]

Part 3 Method - 1 - Link:    • How to Install Docker in Ubuntu 21.04 Usin...  
Part 3 Method - 2 - Link:    • How to Install Docker in Ubuntu 21.04 Usin...  
Part 3 Method - 3 - Link:    • How to Install Docker in Ubuntu 21.04 Usin...  

#Docker #Dockerinstallation #containers #virtualization