regtag

Tags docker images directly on a remote docker registry without pulling/pushing them first

APACHE-2.0 License

Stars
3
Committers
1

regtag

Tags docker images directly on a docker registry without pulling/pushing those images.

  • Uses your docker login configuration by default.
  • Specify -creds username:password for alternative credentials.

Useful for CI/CD for promoting quality to production.

Binaries

You can find the binaries here

Examples

Using automatic or no credentials

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

Specified credentials

$ regtag -creds root:s3cret registry.mydomain.tld/42wim/matterbridge:1.0 production
production added to https://registry.mydomain.tld/42wim/matterbridge:1.0

Building

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

Usage of ./regtag:
./regtag registry/image:tag extratag (uses docker login credentials by default)
  -creds string
        use [username[:password]] for accessing the registry
Package Rankings
Top 8.17% on Proxy.golang.org
Related Projects