Rocky Linux in a Container
Here’s how to run Rocky Linux in a Docker container.
Download the image.
<pre lang="bash">
docker pull rockylinux/rockylinux
Create a Rocky Linux container called bullwinkle.
<pre lang="bash">
docker run -it --name bullwinkle -d rockylinux/rockylinux
Login to the container using bash.
<pre lang="bash">
docker exec -it --user root bullwinkle /bin/bash
When done, stop and delete the container.
<pre lang="bash">
docker ps -a
docker stop container_ID
docker rm container_ID