How to use Rocky Linux as a Docker container image. In this tutorial, how to get it, deploy it.
Rocky Linux to replace Centos.
You will need a VM with the Docker engine installed and running.
pull down the Rocky Linux image
Open a terminal window. The run command as below
docker pull rockylinux/rockylinux
Docker image will be saved to your local repository and use it. You can verify it
create a container from the Rocky Linux image
Create a container devopsroles and deploy it in detached mode as 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
You have used Rocky Linux as a Docker container image. I hope will this your helpful. Thank you for reading the DevopsRoles page!