Jack Wallen reveals you how to replace Podman on AlmaLinux 9 with the Docker CE runtime engine.
Image: REDPIXEL/Adobe Stock AlmaLinux is a Red Hat Business Linux clone, which indicates it does not deliver with Docker set up. In fact, the majority of RHEL-based distributions are now defaulting to Podman. Although Podman is a close drop-in for Docker, I still have a fondness for the original, so I choose to use that technology over its replacement.
The issue is that installing Docker on an RHEL-based distribution isn’t precisely simple. It’s not hard, however without understanding the best steps or flags to use, you’ll discover it nearly difficult to get Docker set up.
SEE: Hiring kit: Back-end Designer (TechRepublic Premium)
Luckily, I’ve taken one for the team and figured out how it can be done without excessive stress. Let’s make it take place.
What you’ll require to set up Docker on AlmaLinux
The only things you’ll require to make this work are a running instance of AlmaLinux 9 and a user with sudo advantages.
Must-read developer protection
How to install Docker CE on AlmaLinux
Log in to your circumstances of AlmaLinux and make certain it’s upgraded with the command:
sudo dnf update
A word of caution– the upgrade will take a while. Depending on for how long it has actually been since the last update (and the speed of your network connection), offer this procedure anywhere from 10 to 60 minutes. For me, it took around thirty minutes to complete.
Once the update finishes, you’ll then need to set up the advancement tools, which visit method of a helpful group. This installation can be done with the command:
sudo dnf groupinstall “Advancement Tools”
Again, this installation will spend some time. It’s faster than the update, however expect to at least view the output from the command for five or so minutes.
When that finishes, you ought to most likely reboot the server if the update included the kernel. When the reboot surfaces, log back in and include the required Docker repository with the command:
sudo dnf config-manager– add-repo=https://download.docker.com/linux/centos/docker-ce.repo
With the repository added, we can now set up Docker CE. However, this is where the technique comes into play. If you merely release the command:
sudo dnf install docker-ce -y
The command will fail. Why? Since a lot of the Docker dependencies conflict with Podman and its dependences. To navigate that you need to set up Docker CE while removing Podman and its associated plans at the very same time. This is made with the command:
sudo dnf set up docker-ce– allowerasing
After the above command completes, start and make it possible for the Docker service with:
sudo systemctl allow– now docker
Finally, include your user to the docker group with the command:
sudo usermod -aG docker $USER
Log out and log back in.
You can test the brand-new installation by pulling down the hello-world image with the command:
docker pull hello-world
Congratulations, you’ve simply replaced Podman with Docker on AlmaLinux. Whether or not you need to do this depends upon whether you find Podman a deserving follower to Docker. If not, this is your finest route beyond switching to an Ubuntu-based server distribution.
Sign up for TechRepublic’s How To Make Tech Work on YouTube for all the latest tech recommendations for service pros from Jack Wallen.