I just noticed there is a distinct lack of official Rocky Linux images on Docker Hub or Quay.io — it would be nice to have an official image somewhere for people who want to quickly kick the tires.
I’m building an Ansible test image with systemd for my Ansible role and infrastructure testing, but right now I’m basing it off an unofficial RC image I found from Docker Hub
I know this is a work in progress. They’re not up yet but there’s some tooling here that will let you build one from scratch for now.
The final images will be built for Docker Hub using Koji in the current build infra rather than with a standard Dockerfile, but you can already look at the kickstart for that build here.
I’ve managed to create LXC container from the CentOS 8 one, and I use its snapshot to create more LXC RockyLinux containers. I use Fedora 33 with the ganto/lxc4 Copr copr. The process should be the same on every distro which has LXC/LXD. Here is the step-by-step guide:
Create the container: lxc launch images:centos/8 rocky_linux
Go into the container lxc exec rocky_linux /bin/bash
Congrats, you have a RockyLinux 8.3 container now! You can make a snapshot of it, and use it to create more containers of that type.
PS. it may be that the upstread has newer rocky-release, rocky-repos and rocky-gpg-keys packages on their file server. If the rpm command fails, check the file server for new file names, and run it again.
mrak$ lxc exec rocky_linux /bin/bash
[root@rocky_linux ~]# cat /etc/rocky-release
Rocky Linux release 8.3
[root@rocky_linux ~]# dnf repolist
repo id repo name
appstream Rocky Linux 8 - AppStream
baseos Rocky Linux 8 - BaseOS
extras Rocky Linux 8 - Extras
There seems to now be an image on DockerHub that looks official, though it’s five months old and does not appear to have recieved any ‘regular updates’ as the README suggests should be happening. This seems like the best we’re going to get for now.
Hopefully there will be more movement on this some time soon, usable Docker images are kind of important if RockyLinux is actually aiming to be a full replacement for CentOS.