Skip to main content
Manage container registry authentications for private Docker images.

Alias

You can use reg as a shorthand for registry:

Subcommands

List registry authentications

List all your container registry authentications:

Get registry authentication details

Get details about a specific registry authentication:

Create a registry authentication

Create credentials for a private container registry. Supply the password in one of three ways:
  • Pass it directly with the --password flag.
  • Pipe or redirect it into --password-stdin.
  • Omit both flags to enter it at an interactive prompt.
Pass the password directly with --password:
Omit the password flag to have the command prompt for the password without echoing it:
Pipe a token held in an environment variable into --password-stdin:
Redirect a token from a file into --password-stdin:
For Google Artifact Registry or gcr.io, set --username to the literal _json_key and feed the multi-line service-account JSON key file through --password-stdin. The command supports multi-line passwords and strips only a single trailing newline added by the pipe or redirection.
Prefer --password-stdin or the interactive prompt over --password. A value passed to --password is visible in the process table and your shell history.

Create flags

string
required
Name for this registry authentication.
string
required
Registry username.
string
Registry password or access token. Cannot be used with --password-stdin. If neither --password nor --password-stdin is given, the command prompts for the password when run in an interactive terminal, or exits with an error otherwise.
bool
Read the registry password from standard input (pipe, heredoc, or file redirection). Supports multi-line values. Cannot be used with --password.

Delete a registry authentication

Delete a registry authentication:
Last modified on August 24, 2026