docker-version-cli

1.0.2 • Public • Published

Docker Version 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

Readme

Keywords

none

Package Sidebar

Install

npm i docker-version-cli

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

42.8 kB

Total Files

5

Last publish

Collaborators

  • metowolf