Gitlab Registries for LXD

Hello :wave:

I’m using gitlab-ce 13.10.3.
Is it possible to use a registry (container or package) to host LXD (LXC) images?

1 Like

Seems it isn’t possible. Only OCI images are storable using the Gitlab Container Registry. :man_shrugging:

1 Like

I’m not sure how an LXC/LXD registry exactly works, but probably it needs to store the images as tar archives.

Issue building an LXC container within a pipeline describes the building process, and the artifacts in the CI/CD pipeline.

Maybe you can combine the upload to using the generic package registry: GitLab Generic Packages Repository | GitLab and use that as a remote source for lxc commands.

Though, reading a bit more in the docs, it seems that LXD needs its own image servers, and streams with authentication, headers, etc. Linux Containers - LXD - Advanced guide That said, I think you are better with hosting your own image server, for example using GitHub - Avature/lxd-image-server: Creates, manages and mirrors a simplestreams lxd image server on top of nginx. - for the long term, please open a new feature proposal: https://gitlab.com/gitlab-org/gitlab/-/issues/new?issuable_template=Feature%20proposal%20%20-%20lean :slight_smile:

Thanks for advises :slight_smile:

My choice is to add a remote image server:

1 Like