Go to file
2024-06-04 14:32:42 +00:00
_service [info=a7c872e9c08b4a494e93bdd3ea280143] 2023-03-03 07:50:24 +00:00
.gitattributes [info=c56ed38d695b4a1840d1e69b234003c8] 2022-11-23 09:32:15 +00:00
.gitignore [info=c56ed38d695b4a1840d1e69b234003c8] 2022-11-23 09:32:15 +00:00
config.sh [info=8cf4c0c675b0583078efe58cb4d01c82] 2024-04-12 12:15:14 +00:00
distribution-image.changes [info=78d2ae0b88f752996247d248ab33e751] 2024-06-04 14:32:42 +00:00
distribution-image.kiwi [info=d7adcf3e01828f025ff41e9f162fe105] 2024-04-19 11:52:48 +00:00
README.md [info=78d2ae0b88f752996247d248ab33e751] 2024-06-04 14:32:42 +00:00

openSUSE Tumbleweed OCI Container Registry (Distribution): Suitable for running a local OCI registry

Redistributable

Description

This container image allows to run a local OCI registry.

Usage

Before you start the container, you need to create a config.yml with the following content:

---
version: 0.1
log:
  level: info
storage:
  filesystem:
    rootdirectory: /var/lib/docker-registry
http:
  addr: 0.0.0.0:5000

You can also create an empty directory for storing the images outside the container:

mkdir -p /var/lib/docker-registry

Then you can start the container with the following command:

podman run -d --restart=always -p 5000:5000 -v /path/to/config.yml:/etc/registry/config.yml \
  -v /var/lib/docker-registry:/var/lib/docker-registry --name registry registry.opensuse.org/opensuse/registry:%%registry_version%%-%RELEASE%

The registry is available at http://localhost:5000. To keep the registry running after a reboot, create a systemd service as follows:

sudo podman generate systemd registry > /etc/systemd/system/registry.service
sudo systemctl enable --now registry

Licensing

SPDX-License-Identifier: Apache-2.0

This documentation and the build recipe are licensed as Apache-2.0. The container itself contains various software components under various open source licenses listed in the associated Software Bill of Materials (SBOM).

This image is based on openSUSE Tumbleweed.