oras login
Log in to a remote registry
oras login [flags] <registry>
Examples
Log in with username and password from command line flags:
oras login -u username -p password localhost:5000
Log in with username and password from stdin:
oras login -u username --password-stdin localhost:5000
Log in with identity token from command line flags:
oras login --identity-token token localhost:5000
Log in with identity token from stdin:
oras login --identity-token-stdin localhost:5000
Log in with username and password in an interactive terminal:
oras login localhost:5000
Log in with username and password in an interactive terminal and no TLS check:
oras login --insecure localhost:5000
Options
--ca-file string server certificate authority file for the remote registry
--cert-file string client certificate file for the remote registry
-d, --debug output debug logs (implies --no-tty)
-H, --header stringArray add custom headers to requests
-h, --help help for login
--identity-token string registry identity token
--identity-token-stdin read identity token from stdin
--insecure allow connections to SSL registry without certs
--key-file string client private key file for the remote registry
--no-tty [Preview] do not show progress output
-p, --password string registry password or identity token
--password-stdin read password from stdin
--plain-http allow insecure connections to registry without SSL check
--registry-config path path of the authentication file for registry
--resolve host:port:address[:address_port] customized DNS for registry, formatted in host:port:address[:address_port]
-u, --username string registry username
-v, --verbose verbose output