How to Install Docker on AlmaLinux 10
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:
Install Required Packages
Install the required utilities:
Add the Docker Repository
Add the official Docker CE repository:
Verify the repository:
Install Docker CE
Install Docker and related components:
Depending on repository updates, additional packages may also be installed automatically.
Start Docker
Enable Docker at boot:
Start Docker:
Check service status:
Verify Docker Installation
Display the Docker version:
Example output:
Run the official test container:
If Docker is installed correctly, a welcome message will be displayed.
Run Docker Without sudo
Add your user account to the Docker group:
Apply the new group membership:
Verify:
If no permission errors appear, Docker can now be used without sudo.
Docker Data Directory
By default, Docker stores images, containers, and volumes in:
Check disk usage:
This directory can grow significantly when multiple images and containers are used.
List Docker Images
Display downloaded images:
Example output:
List Running Containers
Display active containers:
Display all containers:
Remove Docker
Stop Docker:
Remove packages:
Optionally remove all Docker data:
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