Install Docker ​
first update the system of your Linux server. To do this, open the console and enter the following command.
apt updateapt updateinstall the "docker.io" package by entering the following command in the console:
apt install docker.ioapt install docker.iostart the Docker service with the following command:
sudo systemctl start dockersudo systemctl start dockerconfigure the Docker service to start automatically when the system is booted by entering the following command:
sudo systemctl enable dockersudo systemctl enable dockercheck that Docker has been properly installed with the following command:
sudo docker run hello-worldsudo docker run hello-worldif Docker has been installed correctly, the Hello World example is executed and a confirmation message is displayed.
Docker is now successfully installed on your Linux server and you can run and manage containers. To learn more Docker commands, you can read the Docker documentation or use online resources.