Skip to content

mradile/dockerauthgenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a simple cli tool to generate a docker auth json

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages