dockerauthgenerator

command module
v0.0.0-...-2a71c9a Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: MIT Imports: 11 Imported by: 0

README

Dockerauthgenerator

Dockerauthgenerator is simple cli tool to generate a docker auth json file.

Usage

Dockerauthgenerator creates a json file which can be used to authenticate against a docker registry.

The output will be similar to this and will be printed on stdout:

{
  "auths": {
    "some.registry.com:5000": {
      "auth": "bG9naW5OYW1lOnNvbWVQYXNzd29yZA=="
    }
  }
}
Password as Parameter

Most simple way is to provide the password as flag argument:

dockerauthgenerator -r some.registry.com:5000 -l loginName -p somePassword
Password read from Terminal

If the password parameter is omitted, the password is read from terminal:

dockerauthgenerator -r some.registry.com:5000 -l loginName
Password read from stdin

You can also pipe the password from stdin:

echo somePassword | dockerauthgenerator -r some.registry.com:5000 -l loginName --s

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