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
Tagbot retags OCI Container Images without needing a full Docker Pull / Docker Push workflow by working directly with the registry API.
3
+
Tagbot is a tool for retagging OCI Container Images directly using the registry API, eliminating the need for a full Docker Pull/Push workflow.
4
+
5
+
## Features
6
+
7
+
- Add multiple tags to an image without pulling or pushing.
8
+
- Efficient and API-driven.
4
9
5
10
## Usage
6
11
7
12
### Local Usage
8
13
14
+
To use Tagbot locally, run:
15
+
16
+
```shell
17
+
tagbot \
18
+
--username <your-username> \
19
+
--password <your-password> \
20
+
--source <registry>/<image>:<tag> \
21
+
--tags <tag1>,<tag2>
22
+
```
23
+
24
+
#### Example:
9
25
```shell
10
26
tagbot \
11
27
--username example \
@@ -14,7 +30,11 @@ tagbot \
14
30
--tags v1.0.0,1.0.0
15
31
```
16
32
17
-
This would add an additional tag of `v1.0.0` to `example.azurecr.io/debian:latest`. The container image can then be pulled with either `example.azurecr.io/debian:latest`, `example.azurecr.io/debian:v1.0.0`, or `example.azurecr.io/debian:1.0.0`
33
+
This command adds the tags `v1.0.0` and `1.0.0` to `example.azurecr.io/debian:latest`. The image can then be pulled using any of the following tags:
- This still exists, but is formally deprecated and will no longer recieve updates or support
47
-
* Are Registries other than Azure Container Registry supported?
48
-
- Azure Container Registry is the only officially supported Registry, but other simple registries like Docker Hub are expected to work just fine.
65
+
- **Q**: Are registries other than Azure Container Registry supported?<br>
66
+
**A**: Azure Container Registry is the only officially supported registry. However, other registries, such as Docker Hub, Amazon ECR, and Google Container Registry, are likely to work if they conform to standard OCI APIs.
67
+
- **Q**: Does Tagbot require admin-level credentials for the registry?<br>
68
+
**A**: No, it only requires permissions to read and write tags for the specified images.
69
+
- **Q**: Can I retag multiple images in a single command?<br>
70
+
**A**: No, Tagbot currently supports retagging one image at a time. Use a script or automation tool to process multiple images.
71
+
- **Q**: Are there any size limitations for the images being retagged?<br>
72
+
**A**: No, since Tagbot operates at the registry level, the image size is irrelevant.
73
+
- **Q**: Is Tagbot secure to use with my credentials?<br>
74
+
**A**: Tagbot does not store your credentials and only uses them for the duration of the operation. For additional security, use environment variables or secret management tools.
75
+
- **Q**: Can I remove a tag from an image using Tagbot?<br>
76
+
**A**: No, Tagbot only supports adding new tags. To remove tags, use your registry's management tools.
77
+
- **Q**: What happens if the specified tag already exists?<br>
78
+
**A**: If the tag already exists, Tagbot will reassign it to the source image.
79
+
- **Q**: Is there a dry-run mode to test without making changes?<br>
80
+
**A**: Currently, Tagbot does not support a dry-run mode.
0 commit comments