Installing Docker
The following procedure describes how to install Docker on AlmaLinux.To view the most up-to-date installation documentation for Docker, please visit http://docs.docker.io.
AlmaLinux
The following procedure describes how to install Docker on a managed Dedicated Server with root access running AlmaLinux. To install Docker on AlmaLinux, follow these steps:- Log in to the server using SSH.
-
As the root user, type the following commands to update the system:
- After the system restarts, log back in to the server using SSH.
-
To add the EPEL (Extra Packages for Enterprise Linux) repository, type the following command:
-
To verify that the EPEL repository has been added, type the following command:
You should see in the repository list output a line that resembles the following:
-
To install Docker, type the following command:
-
To start the Docker service, type the following command:
📘 Note If you want the Docker service to start automatically every time the system starts, type the following command:
-
To verify that Docker installed correctly, type the following command:
Because this is the first time you are running the Fedora container image, Docker downloads it first, and then runs the command. You should see the following output:
👍 Tip You can also run an interactive shell within the container. To do this, type the following command:
Note that the command prompt changes to show that you are running an interactive shell in the container. To exit the interactive shell and return to the normal prompt, typeexit.
.jpg?fit=max&auto=format&n=E2LlsT5gBITvo732&q=85&s=ec11e1673894bdf46663a5d73602eb87)
