Code
sudo dnf update -y
- Install
dnf-utils
and Add Docker Repository:
Code
sudo dnf install -y dnf-utils sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
This adds the official Docker CE repository, which is compatible with Oracle Linux 9 due to its RHEL-based nature. Install Docker Engine.
Code
sudo dnf install -y docker-ce docker-ce-cli containerd.io
This command installs the Docker Engine, its command-line interface, and containerd. Enable and Start Docker Service.
Code
sudo systemctl enable docker.service sudo systemctl start docker.service