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
Step 2
Now we run directly in the terminal "Docker" to validate that it is not installed:
Step 3
To install Docker on Ubuntu 21.04, we are going to run the following command:
sudo apt install docker.io
Step 4
We enter the letter S to confirm the download and installation of the Docker packages:
Step 5
After this we validate the installed Docker version with the following command:
docker –version
Step 6
We check the current state of Docker with the following command:
sudo systemctl status docker
Step 7
We see that by default it is inactive, to enable it we execute the following:
sudo systemctl enable --now Docker
Step 8
Again we run "sudo systemctl status Docker" to see the status now:
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
Step 10
Finally we list the Docker images with the following command:
sudo docker images
It is a simple process to install this powerful application and with it have options to create applications in Ubuntu 21.04..