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 | 10.10.10.93 (eth0)  | CONTAINER | 0         | Centos   |
+--------------------+---------+---------------------+-----------+-----------+----------+
| centos80           | RUNNING | 10.10.10.101 (eth0) | CONTAINER | 0         | Centos   |
+--------------------+---------+---------------------+-----------+-----------+----------+
| centos83stream     | RUNNING | 10.10.10.116 (eth0) | CONTAINER | 0         | Centos   |
+--------------------+---------+---------------------+-----------+-----------+----------+
| centos83to83stream | RUNNING | 10.10.10.127 (eth0) | CONTAINER | 0         | Centos   |
+--------------------+---------+---------------------+-----------+-----------+----------+
| debian10           | RUNNING | 10.10.10.19 (eth0)  | CONTAINER | 0         | Debian   |
+--------------------+---------+---------------------+-----------+-----------+----------+
| oracle80           | RUNNING | 10.10.10.7 (eth0)   | CONTAINER | 0         | Oracle   |
+--------------------+---------+---------------------+-----------+-----------+----------+
| ubuntu20           | RUNNING | 10.10.10.131 (eth0) | CONTAINER | 0         | ubuntu   |
+--------------------+---------+---------------------+-----------+-----------+----------+
6 Likes

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 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

1 Like

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.

2 Likes

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 https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-release-8.3-13.el8.noarch.rpm \
https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-repos-8.3-13.el8.noarch.rpm \
https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-gpg-keys-8.3-13.el8.noarch.rpm

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
2 Likes

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