+5 votes
657 views
Install Docker on Ubuntu 21.04 | Hirsute hippo

in Linux / Unix by (552k points)
reopened | 657 views

1 Answer

+3 votes
Best answer

How to install Docker on Ubuntu 21.04

Creating applications in Linux can be a simple task due to the wide set of tools and utilities available for it, additionally, being an open source system, its scalability and performance options are drastically increased. One of the many applications available for this type of activity is Docker. Docker Engine has been developed as a completely open source container technology thanks to which it is possible to create, manage and contain the applications that we want..

 

Docker Engine functions
Docker Engine acts as a client-server application type with elements such as:

 

  • An API thanks to which the interfaces with which the programs will communicate with the Docker daemon are identified.
  • A server bound to the long-running daemon process dockerd.
  • It integrates a command line interface (CLI) client docker and thanks to this it is possible to control and interact with the Docker daemon using scripts or direct commands from the terminal.

 

 

 

 

If you are struck by what Docker offers you, keep reading that TechnoWikis will tell you how to install it on Ubuntu 21.04 Hirsute Hippo.

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

 

How to install Docker on Ubuntu 21.04

 

Step 1

We check that we are using Ubuntu 21.04 with the following command:
 lsb_release -a 
image

 

 

Step 2

Now we run directly in the terminal "Docker" to validate that it is not installed:

 

image

 

 

Step 3

To install Docker on Ubuntu 21.04, we are going to run the following command:
 sudo apt install docker.io 
image

 

 

Step 4

We enter the letter S to confirm the download and installation of the Docker packages:

 

image

 

 

Step 5

After this we validate the installed Docker version with the following command:
 docker –version 
image

 

 

Step 6

We check the current state of Docker with the following command:
 sudo systemctl status docker 
image

 

 

Step 7

We see that by default it is inactive, to enable it we execute the following:
 sudo systemctl enable --now Docker 
image

 

 

Step 8

Again we run "sudo systemctl status Docker" to see the status now:

 

image

 

 

Step 9

Once active, we are going to run the following line to see Docker's response. When running we can verify that Docker works as it should.
 sudo docker run hello-world 
image

 

 

Step 10

Finally we list the Docker images with the following command:
 sudo docker images 
image

 

It is a simple process to install this powerful application and with it have options to create applications in Ubuntu 21.04..

 


by (3.5m points)

Related questions

+3 votes
1 answer
asked Nov 12, 2020 in Linux / Unix by backtothefuture (552k points) | 402 views
+4 votes
1 answer
asked Nov 12, 2020 in Linux / Unix by backtothefuture (552k points) | 398 views
+4 votes
1 answer
asked Nov 10, 2020 in Linux / Unix by backtothefuture (552k points) | 606 views
+4 votes
1 answer
asked Nov 6, 2020 in Linux / Unix by backtothefuture (552k points) | 616 views
+3 votes
1 answer
asked Nov 5, 2020 in Linux / Unix by backtothefuture (552k points) | 436 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users