# Docker/LXD container images

**URL:** <https://forums.rockylinux.org/t/docker-lxd-container-images/825>\
**Category:** Rocky Linux Help & Support\
**Created:** [December 13, 2020, 3:29pm UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825 "2020-12-13T15:29:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![eva2000](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/eva2000/32/87_2.png) [@eva2000](https://forums.rockylinux.org/u/eva2000)\
**Post date:** [December 13, 2020, 3:29pm UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/1 "2020-12-13T15:29:46Z")

</div>

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

Hopefully, they can join the party 🙂

```auto
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 |
+--------------------+---------+---------------------+-----------+-----------+----------+

```

---

<div class="post-metadata">

**Author:** ![jonixmobile](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jonixmobile](https://forums.rockylinux.org/u/jonixmobile)\
**Post date:** [December 19, 2020, 6:22am UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/2 "2020-12-19T06:22:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dejan](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/dejan/32/851_2.png) [@dejan](https://forums.rockylinux.org/u/dejan)\
**Post date:** [May 4, 2021, 11:01am UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/3 "2021-05-04T11:01:08Z")

</div>

I would be very happy to use LXC RockyLinux image!

---

<div class="post-metadata">

**Author:** ![geerlingguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/geerlingguy/32/80_2.png) [@geerlingguy](https://forums.rockylinux.org/u/geerlingguy)\
**Post date:** [May 5, 2021, 7:37pm UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/4 "2021-05-05T19:37:29Z")

</div>

I just noticed there is a distinct lack of official Rocky Linux images on Docker Hub or [Quay.io](http://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](https://hub.docker.com/r/gammabytehosting/rockylinux)

---

<div class="post-metadata">

**Author:** ![alexhaydock](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/alexhaydock/32/866_2.png) [@alexhaydock](https://forums.rockylinux.org/u/alexhaydock)\
**Post date:** [May 5, 2021, 7:53pm UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/5 "2021-05-05T19:53:21Z")

</div>

> [@geerlingguy](#):
>
> 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 know this is a work in progress. They’re not up yet but there’s some tooling [here](https://git.rockylinux.org/sig/containers/docker-build) 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](https://git.rockylinux.org/rocky/kickstarts/-/blob/main/Rocky-8-Container.ks).

---

<div class="post-metadata">

**Author:** ![dejan](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/dejan/32/851_2.png) [@dejan](https://forums.rockylinux.org/u/dejan)\
**Post date:** [May 6, 2021, 6:39pm UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/6 "2021-05-06T18:39:21Z")

</div>

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](https://copr.fedorainfracloud.org/coprs/ganto/lxc4/) 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:

```auto
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.

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

```

---

<div class="post-metadata">

**Author:** ![Peter](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/peter/32/442_2.png) [@Peter](https://forums.rockylinux.org/u/Peter)\
**Post date:** [May 9, 2021, 9:09am UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/7 "2021-05-09T09:09:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maxodoble](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@maxodoble](https://forums.rockylinux.org/u/maxodoble)\
**Post date:** [June 25, 2021, 8:52am UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/8 "2021-06-25T08:52:37Z")

</div>

about dnf distro-sync failure see here: [https://blog.mqbx.nl/2020/12/09/fixed-filesystem-package-fails-to-upgrade-on-docker-lxc-containers-centos-7-8/](https://blog.mqbx.nl/2020/12/09/fixed-filesystem-package-fails-to-upgrade-on-docker-lxc-containers-centos-7-8/)

---

<div class="post-metadata">

**Author:** ![nook24](https://avatars.discourse-cdn.com/v4/letter/n/c0e974/32.png) [@nook24](https://forums.rockylinux.org/u/nook24)\
**Post date:** [October 12, 2021, 4:32pm UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/9 "2021-10-12T16:32:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ahferroin7](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/ahferroin7/32/1373_2.png) [@ahferroin7](https://forums.rockylinux.org/u/ahferroin7)\
**Post date:** [November 12, 2021, 3:12pm UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/10 "2021-11-12T15:12:37Z")

</div>

There seems to now be [an image on DockerHub that looks official](https://hub.docker.com/r/rockylinux/rockylinux), 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.

---

<div class="post-metadata">

**Author:** ![bendem](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@bendem](https://forums.rockylinux.org/u/bendem)\
**Post date:** [November 17, 2021, 9:11am UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/11 "2021-11-17T09:11:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mustafa](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mustafa/32/708_2.png) [@mustafa](https://forums.rockylinux.org/u/mustafa)\
**Post date:** [November 20, 2021, 10:05am UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/12 "2021-11-20T10:05:19Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 4:01am UTC](https://forums.rockylinux.org/t/docker-lxd-container-images/825/13 "2023-08-25T04:01:07Z")

</div>


