docker-multi-plugin

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 7 Imported by: 0

README

docker-multi-plugin

A simple CLI plugin (created mainly to test the capabilities of the go docker cli plugin api) which allows to push and tag images with multiple arguments in one command!

Ever found the following annoying?

docker tag myimage:latest myimage:1.0.1.1.0
docker tag myimage:latest myimage:1.0.1.1
docker tag myimage:latest myimage:1.0.1
docker tag myimage:latest myimage:1.0
docker tag myimage:latest myimage:1

docker push myimage:latest
docker push myimage:1.0.1.1.0
docker push myimage:1.0.1.1
docker push myimage:1.0.1
docker push myimage:1.0
docker push myimage:1

Well, with the multi cli plugin, you could instead do this!

docker multi tag myimage:latest myimage:1.0.1.1.0 myimage:latest myimage:1.0.1.1  myimage:latest myimage:1.0.1 myimage:latest myimage:1.0 myimage:latest myimage:1
docker multi push myimage:latest myimage:1.0.1.1.0 myimage:latest myimage:1.0.1.1  myimage:latest myimage:1.0.1 myimage:latest myimage:1.0 myimage:latest myimage:1

Awesome right?!

Installation

Either build the code yourself or download one of the binaries from the releases tab on github.
Rename the plugin file to docker-multi and place it in the ~/.docker/cli-plugins directory (or %HOMEPATH%\.docker\cli-plugins on windows).

MULTI_VERSION=v0.0.3   # Change to version you want to download.
MULTI_ARCH=amd64-linux # Change to your arch and os
PLUGINS=$HOME/.docker/cli-plugins
mkdir -p $PLUGINS

curl -L "https://github.com/jitesoft/docker-multi-plugin/releases/download/${MULTI_VERSION}/docker-multi-plugin-${MULTI_ARCH}.tar.gz" | tar zx -C $PLUGINS/
chmod +x $PLUGINS/docker-multi

Run docker docker multi --help.

Done!

License

MIT

No warranty, no liability.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL