Tags docker images directly on a docker registry without pulling/pushing those images.
Useful for CI/CD for promoting quality to production.
You can find the binaries here
Uses your docker config if exists, otherwise without auth
$ regtag registry.mydomain.tld/42wim/matterbridge:1.0 production
production added to https://registry.mydomain.tld/42wim/matterbridge:1.0
$ regtag -creds root:s3cret registry.mydomain.tld/42wim/matterbridge:1.0 production
production added to https://registry.mydomain.tld/42wim/matterbridge:1.0
Go 1.10+ is required Make sure you have Go properly installed, including setting up your [GOPATH] (https://golang.org/doc/code.html#GOPATH)
cd $GOPATH
go get github.com/42wim/regtag
You should now have regtag binary in the bin directory:
$ ls bin/
regtag
Usage of ./regtag:
./regtag registry/image:tag extratag (uses docker login credentials by default)
-creds string
use [username[:password]] for accessing the registry