docker-version-cli
v1.0.2
Published
A simple Docker tagging and publishing tool
Downloads
6
Readme
Docker Version
A simple Docker tagging and publishing tool
Install
$ npm i docker-version-cli -g
or
$ yarn global add docker-version-cli
Usage
$ docker-version --help
Usage: docker-version [options]
Options:
-V, --version output the version number
-n, --name [name] Docker images name (default: "")
-t, --tag [tag] Docker images tag/version (default: "")
-h, --help output usage information
Configuration
put .docker-version
file into your docker project
$ cat .docker-version
php:latest-fpm-alpine
php:latest-cli-alpine
Example
pull alpine:latest and tag 3.8, 3, current for it.
$ docker-version -n alpine:latest -t 3.8
[success] pull alpine:latest
[success] tag alpine:3.8
[success] push alpine:3.8
[success] tag alpine:3
[success] push alpine:3
[success] tag alpine:current
[success] push alpine:current
or interactive
$ docker-version
? what is your docker images name? alpine:latest
? what is your docker images latest version? 3.8
[success] pull alpine:latest
[success] tag alpine:3.8
[success] push alpine:3.8
[success] tag alpine:3
[success] push alpine:3
[success] tag alpine:current
[success] push alpine:current