sreg is a tool focused on managing Sealos registry. Its goal is to provide a solution that doesn't rely on buildah, allowing for more flexible image management and support for Sealos deployments.
You can install sreg by following these steps:
-
Download the latest version of the sreg release package for your operating system: sreg
-
Extract the downloaded release package:
tar -xzf sreg_0.1.1_linux_amd64.tar.gz
-
Move the extracted executable to your PATH for global access:
sudo mv sreg /usr/local/bin/
sreg save --registry-dir=/tmp/registry1 my-context
sreg serve filesystem --port=5000
sreg serve inmem --port=5000
sreg sync source-image dst
sreg copy source-image dst
If you wish to build your own version of sreg, you can use goreleaser for building. Use the following command to build:
goreleaser build --snapshot --timeout=1h --rm-dist
sreg's development aims to meet the need for image repository management in Sealos deployments without relying on buildah. It offers a more flexible and secure image management approach. Whether you require stricter image security or more controlled image distribution, sreg is an ideal choice.