Docker install on Rocky-Linux9

Introduction

The Docker Engine can be used running native Docker style container workloads on Rocky Linux servers. This is sometimes preferred to running the full Docker Desktop environment.

Add the docker repository

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

Install the needed packages

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

Start and enable the systemd docker service (dockerd)

sudo systemctl --now enable docker

Notes

docker-ce               : This package provides the underlying technology for building and running docker containers (dockerd) 
docker-ce-cli           : Provides the command line interface (CLI) client docker tool (docker)
containerd.io           : Provides the container runtime (runc)
docker-compose-plugin   : A plugin that provides the 'docker compose' subcommand