Thursday, October 10, 2024

Installing docker and docker compose on almalinux 9

Docker does not explicitly support almalinux, so we have to use centos repository instead.

Below are the steps:

1. Update system
sudo dnf --refresh update
sudo dnf upgrade -y

2. Enable docker repository
sudo dnf install yum-utils
sudo 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 version
docker compose version          

No comments:

Post a Comment