How to Install Docker on AlmaLinux 10

Published: 2026-06-25
Google AdSense 广告位 (待申请通过后开启)

Introduction

Docker is a popular containerization platform that allows developers and system administrators to package applications and their dependencies into portable containers.

This guide explains how to install Docker CE on AlmaLinux 10, start the Docker service, and verify that the installation is working correctly.

Update System Packages

Update your system before installing Docker:

sudo dnf update -y

Install Required Packages

Install the required utilities:

sudo dnf install dnf-plugins-core -y

Add the Docker Repository

Add the official Docker CE repository:

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

Verify the repository:

sudo dnf repolist

Install Docker CE

Install Docker and related components:

sudo dnf install docker-ce docker-ce-cli containerd.io -y

Depending on repository updates, additional packages may also be installed automatically.

Start Docker

Enable Docker at boot:

sudo systemctl enable docker

Start Docker:

sudo systemctl start docker

Check service status:

sudo systemctl status docker

Verify Docker Installation

Display the Docker version:

docker --version

Example output:

Docker version 28.x.x

Run the official test container:

sudo docker run hello-world

If Docker is installed correctly, a welcome message will be displayed.

Run Docker Without sudo

Add your user account to the Docker group:

sudo usermod -aG docker $USER

Apply the new group membership:

newgrp docker

Verify:

docker ps

If no permission errors appear, Docker can now be used without sudo.

Docker Data Directory

By default, Docker stores images, containers, and volumes in:

/var/lib/docker

Check disk usage:

sudo du -sh /var/lib/docker

This directory can grow significantly when multiple images and containers are used.

List Docker Images

Display downloaded images:

docker images

Example output:

REPOSITORY    TAG       IMAGE ID
hello-world   latest    xxxxxxxx

List Running Containers

Display active containers:

docker ps

Display all containers:

docker ps -a

Remove Docker

Stop Docker:

sudo systemctl stop docker

Remove packages:

sudo dnf remove docker-ce docker-ce-cli containerd.io -y

Optionally remove all Docker data:

sudo rm -rf /var/lib/docker

Conclusion

Installing Docker CE on AlmaLinux 10 is straightforward using the official Docker repository. After installation, verify Docker with the hello-world container, configure non-root access, and begin deploying containerized applications.

Related AlmaLinux 10 Tutorials

How to Install Nginx on AlmaLinux 10

How to Install PostgreSQL on AlmaLinux 10

How to Install Git on AlmaLinux 10

Explore More

Technology Guides →

How to Install Docker Compose on AlmaLinux 10

Southeast Asia Insights →