Table of Contents
#Introduction
How to use Rocky Linux as a Docker container image. In this tutorial, how to get it, deploy it. Now, We will use the Docker container image for rocky Linux.
Rocky Linux to replace Centos.
You will need a VM with the Docker engine installed and running.
Docker container image for rocky Linux
pull down the Rocky Linux image
Open a terminal window. The run command is below
docker pull rockylinux/rockylinux
The docker image will be saved to your local repository and used it. You can verify it
docker images
create a container from the Rocky Linux image
Create a container devopsroles and deploy it in detached mode as the command below
docker run -it --name devopsroles -d rockylinux/rockylinux
Access to the container devopsroles
docker exec -it --user root devopsroles /bin/bash
You can destroy the Rocky Linux container as command below
docker ps -a
docker stop Container_ID
docker rm Container_ID
Conclusion
You have used Rocky Linux as a Docker container image. I hope will this your helpful. Thank you for reading the DevopsRoles page!