CentOS Armhf Container Image

Good Day,
I’m running LXD on Ubuntu Bionic running on a Raspberry Pi 3. I know, not much of an environment to work with. But this is just a test case, and so far have been impressed. Only question I have is why I’m not able to find an available CentOS image for Armhf that I can run as a LXD container on the Pi? Docker has a CentOS 7 ArmHF image that runs fine atop Ubuntu on the Pi. But there simply is no CentOS image available from the linuxcontainers.org image repository.

Thanks in advance and please forgive my ignorance. I’m relative new to container technologies (coming from the world of full virtualization and VMware).

Best Wishes to all…
tech101us

LXD has several repositories with container images. You can view them with lxc remote list, and can also add more. The two main repositories are ubuntu: (Ubuntu container images) and images: (All Linux distro container images).

You can view the available container images in a repository by running

lxc image list ubuntu:
lxc image list images:

Or, you can visit https://us.images.linuxcontainers.org/ which is for the images: repository.

Is there an armhf Centos container image?

$ lxc image list images: | grep -i centos
| centos/6 (3 more)             | 0c58b11b5b09 | yes    | Centos 6 amd64 (20181001_02:16)          | x86_64  | 75.55MB  | Oct 1, 2018 at 12:00am (UTC)  |
| centos/6/i386 (1 more)        | f4429bcfecd7 | yes    | Centos 6 i386 (20181001_02:16)           | i686    | 75.79MB  | Oct 1, 2018 at 12:00am (UTC)  |
| centos/7 (3 more)             | ef3eb4858610 | yes    | Centos 7 amd64 (20181001_02:16)          | x86_64  | 83.47MB  | Oct 1, 2018 at 12:00am (UTC)  |
|                               | 73ec6f345004 | yes    | Centos 7 amd64 (20180930_02:16)          | x86_64  | 83.47MB  | Sep 30, 2018 at 12:00am (UTC) |
|                               | 81fc08951237 | yes    | Centos 6 i386 (20180929_02:16)           | i686    | 75.79MB  | Sep 29, 2018 at 12:00am (UTC) |
|                               | 9972b58436eb | yes    | Centos 6 amd64 (20180929_02:16)          | x86_64  | 75.55MB  | Sep 29, 2018 at 12:00am (UTC) |
|                               | 9cc7f164a566 | yes    | Centos 6 amd64 (20180930_02:16)          | x86_64  | 75.55MB  | Sep 30, 2018 at 12:00am (UTC) |
|                               | d23e5fb5d0df | yes    | Centos 6 i386 (20180930_02:16)           | i686    | 75.79MB  | Sep 30, 2018 at 12:00am (UTC) |
|                               | ea1ce9444ef0 | yes    | Centos 7 amd64 (20180929_02:16)          | x86_64  | 83.47MB  | Sep 29, 2018 at 12:00am (UTC) |

So, there is no Centos armhf container image in images:.

So, what do you do about this?

The new way to create container images is to use distrobuilder, found at https://github.com/lxc/distrobuilder/

There are example configuration files for various distributions, including Centos:

There is however an open issue with Centos, that currently does not allow creating Centos armhf container images. I suppose that is what is meant with AltArch in the issue. I am not sure if there is a general issue with distrobuilder with any Centos container image, but there is in any case an issue with Centos.

You can subcribe yourself to this issue in order to follow the progress.

Thanks so much simos. I"m new to the whole container thing, having only a bit of exposure with containers on ProxMox. I’ll take a look at Distrobuiler and subscribe and follow the issue. Grateful for the help and pointers.