You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
+
5
+
## Installation
6
+
7
+
You can install sreg by following these steps:
8
+
9
+
1. Download the latest version of the sreg release package for your operating system: [sreg](https://github.com/labring/sreg/releases)
10
+
11
+
2. Extract the downloaded release package:
12
+
```sh
13
+
tar -xzf sreg_0.1.1_linux_amd64.tar.gz
14
+
```
15
+
16
+
3. Move the extracted executable to your PATH for global access:
17
+
```sh
18
+
sudo mv sreg /usr/local/bin/
19
+
```
20
+
21
+
## Usage
22
+
23
+
### Save an Image to a Local File
24
+
```sh
25
+
sreg save --registry-dir=/tmp/registry1 my-context
26
+
```
27
+
28
+
### Start a Filesystem Image Repository Service
29
+
```sh
30
+
sreg serve filesystem --port=5000
31
+
```
32
+
33
+
### Start an In-Memory Image Repository Service
34
+
```sh
35
+
sreg serve inmem --port=5000
36
+
```
37
+
38
+
### Sync an Image to a Different Repository
39
+
```sh
40
+
sreg sync source-image dst
41
+
```
42
+
43
+
### Copy an Image to a Different Repository
44
+
```sh
45
+
sreg copy source-image dst
46
+
```
47
+
48
+
## Building Your Own Version
49
+
50
+
If you wish to build your own version of sreg, you can use [goreleaser](https://goreleaser.com/) for building. Use the following command to build:
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.
0 commit comments