.nh .TH skopeo-login(1) .SH NAME .PP skopeo-login - Login to a container registry. .SH SYNOPSIS .PP \fBskopeo login\fP [\fIoptions\fP] \fIregistry\fP .SH DESCRIPTION .PP \fBskopeo login\fP logs into a specified registry server with the correct username and password. \fBskopeo login\fP reads in the username and password from STDIN. The username and password can also be set using the \fBusername\fP and \fBpassword\fP flags. The path of the authentication file can be specified by the user by setting the \fBauthfile\fP flag. The default path used is \fB${XDG_RUNTIME_DIR}/containers/auth.json\fP\&. .SH OPTIONS .PP See also skopeo(1) for options placed before the subcommand name. .PP \fB--password\fP, \fB-p\fP=\fIpassword\fP .PP Password for registry .PP \fB--password-stdin\fP .PP Take the password from stdin .PP \fB--username\fP, \fB-u\fP=\fIusername\fP .PP Username for registry .PP \fB--authfile\fP=\fIpath\fP .PP Path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json .PP Note: You can also override the default path of the authentication file by setting the REGISTRY_AUTH_FILE environment variable. \fBexport REGISTRY_AUTH_FILE=path\fR .PP \fB--get-login\fP .PP Return the logged-in user for the registry. Return error if no login is found. .PP \fB--cert-dir\fP=\fIpath\fP .PP Use certificates at \fIpath\fP (*\&.crt, *\&.cert, *\&.key) to connect to the registry. Default certificates directory is \fI/etc/containers/certs.d\fP\&. .PP \fB--help\fP, \fB-h\fP .PP Print usage statement .PP \fB--tls-verify\fP=\fIbool\fP .PP Require HTTPS and verify certificates when talking to the container registry or daemon. Default to registry.conf setting. .PP \fB--verbose\fP, \fB-v\fP .PP Write more detailed information to stdout .SH EXAMPLES .EX $ skopeo login docker.io Username: testuser Password: Login Succeeded! .EE .EX $ skopeo login -u testuser -p testpassword localhost:5000 Login Succeeded! .EE .EX $ skopeo login --authfile authdir/myauths.json docker.io Username: testuser Password: Login Succeeded! .EE .EX $ skopeo login --tls-verify=false -u test -p test localhost:5000 Login Succeeded! .EE .EX $ skopeo login --cert-dir /etc/containers/certs.d/ -u foo -p bar localhost:5000 Login Succeeded! .EE .EX $ skopeo login -u testuser --password-stdin < testpassword.txt docker.io Login Succeeded! .EE .EX $ echo $testpassword | skopeo login -u testuser --password-stdin docker.io Login Succeeded! .EE .SH SEE ALSO .PP skopeo(1), skopeo-logout(1), containers-auth.json(5), containers-registries.conf(5), containers-certs.d.5.md .SH HISTORY .PP May 2020, Originally compiled by Qi Wang qiwan@redhat.com \[la]mailto:qiwan@redhat.com\[ra]