> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installing the Docker application deployment environment

> Discover how to install Docker on a managed Dedicated Server with AlmaLinux, noting this setup isn't supported.

Docker is an open source application deployment framework. It enables you to deploy applications in their own self-contained environments, providing portability and ease of distribution.

<Warning>
  **Important**

  * You can only install Docker on a managed Dedicated server with root access.
  * Although we have tested and run this Docker configuration, it is not supported. You can use this configuration as a starting point for your own Docker projects, but we cannot help you install, configure, maintain, or troubleshoot any custom configurations.
</Warning>

## Installing Docker

The following procedure describes how to install Docker on AlmaLinux.

<Note>
  To view the most up-to-date installation documentation for Docker, please visit [http://docs.docker.io](http://docs.docker.io).
</Note>

### AlmaLinux

The following procedure describes how to install Docker on a managed Dedicated Server with root access running AlmaLinux.

<Warning>
  **Important**

  If you have not already installed the AlmaLinux operating system template, you must do this before following the procedure below.
</Warning>

To install Docker on AlmaLinux, follow these steps:

1. Log in to the server [using SSH](/docs/using-ssh-secure-shell).

2. As the root user, type the following commands to update the system:

   ```bash theme={null}
   yum -y update
   reboot
   ```

3. After the system restarts, log back in to the server using SSH.

4. To add the EPEL (Extra Packages for Enterprise Linux) repository, type the following command:

   ```bash theme={null}
   yum -y install epel-release
   ```

5. To verify that the EPEL repository has been added, type the following command:

   ```bash theme={null}
   yum repolist
   ```

   You should see in the repository list output a line that resembles the following:

   ```
   epel         Extra Packages for Enterprise Linux 6 - x86_64
   ```

6. To install Docker, type the following command:

   ```bash theme={null}
   yum -y install docker-io
   ```

7. To start the Docker service, type the following command:

   ```bash theme={null}
   service docker start
   ```

   > 📘 Note
   >
   > If you want the Docker service to start automatically every time the system starts, type the following command:
   >
   > ```bash theme={null}
   > chkconfig docker on
   > ```

8. To verify that Docker installed correctly, type the following command:

   ```bash theme={null}
   docker run fedora /bin/echo hello world
   ```

   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:

   ```
   hello world
   ```

   > 👍 Tip
   >
   > You can also run an interactive shell within the container. To do this, type the following command:
   >
   > ```bash theme={null}
   > docker run -i -t fedora /bin/bash
   > ```
   >
   > 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, type `exit`.

## More information

For more information about Docker, please visit [http://docker.io](http://docker.io).
