This guide will help you install Docker and Docker Compose plugin on AlmaLinux.
1. Remove podman as this package conflicts with Docker.
dnf remove podman
2. Install the yum-utils package.
dnf install yum-utils
3. Install the Docker CE repo using yum-config-manager
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
4. Install Docker CE, Docker Compose Plugin, and containerd
dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin
5. Enable the Docker service
systemctl enable --now docker
6. You can now run Docker containers.
If you receive a notice such as this:
Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-0ad49f7e2d27 -j RETURN: iptables: No chain/target/match by that name.
You might need to disable SELinux (setenforce 0
and edit /etc/selinux/config
and set to disabled
) and then restart the Docker service (systemctl restart docker
)