Docker/LXD container images

I know it’s too early, but putting it out there that having Rocky Linux Docker and LXD container images would be handy too :slight_smile:

Hopefully, they can join the party :slight_smile:

lxc list -c ns4tS,config:image.os
|        NAME        |  STATE  |        IPV4         |   TYPE    | SNAPSHOTS | IMAGE OS |
| centos79           | RUNNING | (eth0)  | CONTAINER | 0         | Centos   |
| centos80           | RUNNING | (eth0) | CONTAINER | 0         | Centos   |
| centos83stream     | RUNNING | (eth0) | CONTAINER | 0         | Centos   |
| centos83to83stream | RUNNING | (eth0) | CONTAINER | 0         | Centos   |
| debian10           | RUNNING | (eth0)  | CONTAINER | 0         | Debian   |
| oracle80           | RUNNING | (eth0)   | CONTAINER | 0         | Oracle   |
| ubuntu20           | RUNNING | (eth0) | CONTAINER | 0         | ubuntu   |

I eva2000, I wonder how I can contribute, I just subscribe to the community. best regards

I would be very happy to use LXC RockyLinux image!

I just noticed there is a distinct lack of official Rocky Linux images on Docker Hub or — 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:

  1. Create the container:
    lxc launch images:centos/8 rocky_linux

  2. Go into the container
    lxc exec rocky_linux /bin/bash

  3. Execute the following:

rpm -e --nodeps centos-gpg-keys centos-linux-release centos-linux-repos

rpm -ivh \ \

dnf distro-sync
  1. Reboot the container.
    sbin reboot -n

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

A couple of errors I had doing that

  1. You cannot use a underscore ( _ ) as a container name
  2. dnf distro-sync Failed:
    filesystem-3.8-3.el8.x86_64 filesystem-3.8-3.el8.x86_64

about dnf distro-sync failure see here:

I’m also looking for an official source of Rocky Linux Docker images.

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.

8.5 was pushed yesterday, looks official to me (user tagging the release is a rocky release engineer, hi @mustafa).


Sorry for the late reply. That was indeed me :slight_smile: We’re still working on getting listed in the Docker Library.

rockylinux/rockylinux is under RESF control and safe to use!