Rocky Linux – Docker installation

1. remove other/older versions of Docker if they are on server

dnf remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-enginee

2. add the official Docker repo and install Docker:

dnf-config-manager --add-repo
dnf install docker-ce

3. start and enable the service:

systemctl start docker
systemctl enable docker

Leave a Reply

Your email address will not be published. Required fields are marked *