Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j4ng5y/docker-retagger
A (mass) docker image re-tagger
https://github.com/j4ng5y/docker-retagger
Last synced: 14 days ago
JSON representation
A (mass) docker image re-tagger
- Host: GitHub
- URL: https://github.com/j4ng5y/docker-retagger
- Owner: j4ng5y
- Created: 2020-06-02T17:19:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T18:44:26.000Z (over 4 years ago)
- Last Synced: 2024-10-22T08:32:50.289Z (2 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# docker-retagger
This tool allows you to pull, re-tag, and push the re-tagged docker images on either a mass scale, or as a one-off operation.
## Usage
```bash
Usage of retagger:
-image string
the original image to pull
-infile string
use an input file rather than one-off flags
-new-origin string
the origin to set the image to
```| flag | type | required | help | example |
|--------------|--------|--------------------------------------------------------|---------------------------------------------------------------------------------------|--------------------------|
| --image | string | only if --infile is not used | The original image to pull | `golang:latest` |
| --new-origin | string | only if --infile is not used | The new repository you are pushing to | `my.awesome.docker.repo` |
| --infile | string | no, but takes preference over --image and --new-origin | A file with the original image and the new origin seperated by a space (one per line) | `infile.txt` |## Installation
**Option 1:**
1) Clone this repo
2) run `make && make install`This will install a binary called `retagger` into your `/usr/local/bin` directory, so if you need to, make sure your path is updated with this directory:
```bash
cat << EOF >> ~/.bashrc && source ~/.bashrc
export PATH=$PATH:/usr/local/bin
EOF
```**Option 2:**
Just grab the binary from the releases section here :boom:
**Windows Folks:**
You will need to grab the zip file from the releases and put the binary wherever you feel the need :smile:
### Disclaimer
I am well aware this is a poorly constructed CLI :smile:, but it worked in a pinch. I'll try to fix it later.