How7o
  • Home
  • Marketing
    MarketingShow More
    The Beginner’s Guide about Facebook Advertising
    6 Min Read
    64 Creative Marketing Ideas to Boost Your Business
    6 Min Read
  • Resouce
    ResouceShow More
    5 Must-Have Digital Marketing Data Sources
    6 Min Read
    Archival Solution Deployment Best Practices
    6 Min Read
    How Secure Your Mobile Device in Six Steps
    6 Min Read
    5 Effective Ways to Increase Market Share Online
    6 Min Read
    Tips Debugging with CMS code Optimization Quick
    6 Min Read
  • Features
    FeaturesShow More
    7 Things You Need to Know About Feature Driven
    6 Min Read
    Turn an Excel Spreadsheet or Google Sheets Doc
    6 Min Read
    3 Common Ways to Forecast Currency Exchange
    6 Min Read
    Step by Step Guide to a Technical SEO Audit
    6 Min Read
    10+ Free Tools to Make Your Own Animated GIFs
    6 Min Read
  • Guide
    GuideShow More
    Create an Engagement Custom Audience from Video
    6 Min Read
    The Ultimate Guide, Easily Make Videos Tutorials
    6 Min Read
    Tips to Keep Your Cloud Storage Safe and Secure
    6 Min Read
  • Contact
  • Blog
Reading: Install Docker on AlmaLinux: Step-by-Step (Docker CE + Compose)
Share
Subscribe Now
How7oHow7o
Font ResizerAa
  • Marketing
  • Resouce
  • Features
  • Guide
  • Complaint
  • Advertise
Search
  • Categories
    • Marketing
    • Resouce
    • Features
    • Guide
    • Lifestyle
    • Wellness
    • Healthy
    • Nutrition
  • More Foxiz
    • Blog Index
    • Complaint
    • Sitemap
    • Advertise
Follow US
Copyright © 2014-2023 Ruby Theme Ltd. All Rights Reserved.
How7o > Blog > Server Management > Install Docker on AlmaLinux: Step-by-Step (Docker CE + Compose)
Server Management

Install Docker on AlmaLinux: Step-by-Step (Docker CE + Compose)

how7o
By how7o
Last updated: January 12, 2026
4 Min Read
Installing Docker on AlmaLinux guide
SHARE

I had to install Docker on AlmaLinux recently because I was setting up a fresh server for a few self-hosted apps (and later, Discourse). I came from CentOS, so I expected it to be “dnf install docker and done”… but on AlmaLinux (RHEL-family), the clean approach is using Docker’s official repository.

Contents
  • What you need before starting
  • Step 1: Update your AlmaLinux system
  • Step 2: Install the required DNF plugin
  • Step 3: Add Docker’s official repository (recommended)
  • Step 4: Install Docker Engine (plus Compose plugin)
  • Step 5: Start Docker and enable it on boot
  • Step 6: Test Docker (hello-world)
  • Optional: Run Docker without sudo (recommended)
  • Optional: Check Docker Compose
  • Troubleshooting (the common issues)
    • Docker service won’t start
    • Permission denied when running docker (without sudo)
  • Useful links
  • Final thoughts

This guide is the exact process I used—simple, repeatable, and easy to maintain when you upgrade later.

What you need before starting

  • An AlmaLinux server (8/9 works great)
  • A user with sudo privileges
  • Internet access (to pull packages from Docker’s repo)

Step 1: Update your AlmaLinux system

I always update first. It avoids dependency weirdness later.

sudo dnf -y update

Step 2: Install the required DNF plugin

To add external repositories cleanly, you’ll want dnf config-manager, which comes from dnf-plugins-core.

sudo dnf install -y dnf-plugins-core

Step 3: Add Docker’s official repository (recommended)

This is the part most people miss. AlmaLinux doesn’t ship Docker CE in the default repo the way people remember from older CentOS days, so adding Docker’s repo keeps installs and upgrades consistent.

sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

Step 4: Install Docker Engine (plus Compose plugin)

For a modern setup, I recommend installing Docker CE plus the Buildx and Compose plugins. That way you can run docker compose without extra hacks.

sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Quick note: if you only want the minimal packages, you can install just docker-ce, docker-ce-cli, and containerd.io (that’s how my original quick answer was written). But for most servers, the plugins are worth it.

Step 5: Start Docker and enable it on boot

sudo systemctl enable --now docker

Confirm Docker is running:

sudo systemctl status docker
docker --version

Step 6: Test Docker (hello-world)

This is my favorite sanity check because it verifies the service and the runtime in one shot.

sudo docker run hello-world

Optional: Run Docker without sudo (recommended)

By default, Docker needs root privileges. If this is your own server and you want convenience, add your user to the docker group.

sudo usermod -aG docker $USER

Then log out and log back in (or reboot). After that, try:

docker run hello-world

Optional: Check Docker Compose

If you installed the Compose plugin, this should work:

docker compose version

Troubleshooting (the common issues)

Docker service won’t start

Check logs first:

sudo journalctl -u docker --no-pager -n 200

Permission denied when running docker (without sudo)

You probably added the user to the docker group but didn’t re-login yet. Re-login or reboot, then try again.

Useful links

  • Docker’s official install guide (RHEL/CentOS-family)
  • How to install Discourse on AlmaLinux (my next step after Docker)

Final thoughts

That’s it. Once you install Docker on AlmaLinux using the official repo, everything becomes easier—upgrades are predictable, Compose works normally, and deploying apps becomes “pull + run” instead of a long dependency mess.

TAGGED:almalinuxContainersDevOpsDNFdockerDocker CEDocker ComposeLinuxvps

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Previous Article Change welcome message on Ubuntu VPS server (MOTD + SSH banner) Change Welcome Message on Ubuntu VPS (MOTD + SSH Banner)
Next Article Installed Discourse on AlmaLinux How I Installed Discourse on AlmaLinux (Docker Method, Step-by-Step)
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

FacebookLike
XFollow
PinterestPin
InstagramFollow

Subscribe Now

Subscribe to our newsletter to get our newest articles instantly!
Most Popular
How I Fixed Composer Dependency Errors
How I Fixed Composer Dependency Errors Using the –ignore-platform-reqs Flag (Step-by-Step Guide)
January 12, 2026
Transfer Discourse to a new server
How to Transfer Discourse to a New Server on AlmaLinux (Backup + Restore, Step-by-Step)
January 12, 2026
Installed Discourse on AlmaLinux
How I Installed Discourse on AlmaLinux (Docker Method, Step-by-Step)
January 12, 2026
Installing Docker on AlmaLinux guide
Install Docker on AlmaLinux: Step-by-Step (Docker CE + Compose)
January 12, 2026
Change welcome message on Ubuntu VPS server (MOTD + SSH banner)
Change Welcome Message on Ubuntu VPS (MOTD + SSH Banner)
January 12, 2026

You Might Also Like

Automatic logout timeout for command line in Ubuntu (TMOUT 300s)
Server Management

Automatic Logout Timeout for Command Line in Ubuntu (TMOUT 300s)

5 Min Read
Update Ubuntu to the latest kernel version
Server Management

Update Ubuntu to the Latest Kernel Version (Safe Server Steps)

5 Min Read
Create a Directory in Ubuntu
Server Management

Create a Directory in Ubuntu (mkdir Command + Examples)

4 Min Read
Check if GD library is installed in PHP (phpinfo and extension_loaded)
Web Development

How to Check if GD Library Is Installed in PHP (3 Easy Methods)

5 Min Read

Always Stay Up to Date

Subscribe to our newsletter to get our newest articles instantly!
How7o

We provide tips, tricks, and advice for improving websites and doing better search.

Latest News

  • SEO Audit Tool
  • Client ReferralsNew
  • Execution of SEO
  • Reporting Tool

Resouce

  • Google Search Console
  • Google Keyword Planner
  • Google OptimiseHot
  • SEO Spider

Get the Top 10 in Search!

Looking for a trustworthy service to optimize the company website?
Request a Quote
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?