Skip to content

Support for AlmaLinux and Rocky Linux in get.docker.com install script #533

@huangsen365

Description

@huangsen365

Support for AlmaLinux and Rocky Linux in get.docker.com install script

Description

The current installation script available at https://get.docker.com works well for major distributions like Ubuntu, Debian, and CentOS/RHEL.
However, it fails to recognize or properly support AlmaLinux and Rocky Linux, which are both RHEL-compatible distributions widely adopted as CentOS/RHEL successors.

Expected Behavior

The script should detect and install Docker correctly on AlmaLinux and Rocky Linux, just as it does for CentOS/RHEL.

Actual Behavior

When running the script on AlmaLinux or Rocky Linux, it does not recognize the OS or exits with a message indicating that the distribution is unsupported.

Steps to Reproduce

  1. Run the following command on a fresh AlmaLinux or Rocky Linux installation:
    curl -fsSL https://get.docker.com | sh
  2. Observe that the installer fails due to unrecognized OS ID.

Suggested Improvement

Add official detection and support in the script for:

  • AlmaLinux
  • Rocky Linux

Both distributions are binary-compatible with RHEL and share similar package management tools (dnf/yum), so adapting the existing CentOS/RHEL logic should be straightforward.

Environment

Additional Context

AlmaLinux and Rocky Linux are now widely used in enterprise and community environments as CentOS replacements.
Adding support would improve usability and align with Docker’s support for RHEL-based systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions