Below are the steps:
1. Update system
sudo dnf --refresh updatesudo dnf upgrade -y
2. Enable docker repository
sudo dnf install yum-utilssudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3. Install docker
sudo dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
4. Enable and start docker
sudo systemctl enable --now docker
5. Add user to docker group
sudo usermod -G docker -a myuser
6. Refresh group list
newgrp
7. Check docker and docker compose version
docker versiondocker compose version
No comments:
Post a Comment