Installing the Docker application deployment environment
Learn how to install Docker on a managed Dedicated Server running AlmaLinux. This configuration is not officially supported.
About Docker
Section titled “About Docker”Docker is an open-source application deployment framework. It allows you to deploy applications in self-contained environments, providing portability and ease of distribution.
Important
Section titled “Important”- Docker can only be installed on a managed Dedicated Server with root access.
- While this configuration has been tested, it is not supported. Use it as a starting point for your own Docker projects. Support for installation, configuration, or troubleshooting is not provided.
Installing Docker on AlmaLinux
Section titled “Installing Docker on AlmaLinux”Note: If AlmaLinux is not already installed, you must install the operating system template before continuing.
- Log in via SSH as the root user.
-
Update the system
Section titled “Update the system”
yum -y updaterebootAfter the system restarts, log back in via SSH.
-
Add the EPEL repository
Section titled “Add the EPEL repository”
yum -y install epel-release-
Verify the EPEL repository
Section titled “Verify the EPEL repository”
yum repolistYou should see a line like:
epel Extra Packages for Enterprise Linux 6 - x86_64-
Install Docker
Section titled “Install Docker”
yum -y install docker-io-
Start the Docker service
Section titled “Start the Docker service”
service docker startTo enable Docker to start automatically at boot:
chkconfig docker on-
Verify Docker installation
Section titled “Verify Docker installation”
docker run fedora /bin/echo hello worldThe first time this command runs, Docker downloads the Fedora container image, then executes the command. You should see:
hello worldTip: Run an interactive shell in the container:
docker run -i -t fedora /bin/bashTo exit the interactive shell, type:
exitMore Information
Section titled “More Information”For the latest Docker documentation and guidance, visit Docker official site.