buildah-login(1)

πŸ“¦
version 1.45.0 Β· 6 versions
, in centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing

✨ buildah-login(1) ✨

okay bestie, welcome to the buildah-login page from the General Commands Manual β€” literally the glow-up your registry credentials deserve πŸ’–


πŸŽ€ NAME πŸŽ€

buildah-login β€” login to a container registry

no cap, that's the whole job. it gets you in. πŸ”‘


🌸 SYNOPSIS 🌸

buildah login [options] registry

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so buildah login logs into a specified registry server with the correct username and password. it's giving main character energy at the front door of your registry πŸšͺ✨

buildah login reads the username and password from STDIN. you can also set them with the username and password flags if typing into stdin isn't your vibe.

the path of the authentication file can be specified by you (yes, you) by setting the authfile flag. the default path used is ${XDG_RUNTIME_DIR}/containers/auth.json. and if XDG_RUNTIME_DIR is not set, the default is /run/user/$UID/containers/auth.json. so iconic of it to have a backup plan πŸ’…

buildah [GLOBAL OPTIONS]

buildah login [GLOBAL OPTIONS]

buildah login [OPTIONS] REGISTRY [GLOBAL OPTIONS]

πŸ’… OPTIONS πŸ’…

  • --authfile β€” path of the authentication file. default is ${XDG_RUNTIME_DIR}/containers/auth.json. see containers-auth.json(5) for more info. this file is created using buildah login. lowkey it's born from your login πŸ‘‘
note: you can also override the default path of the authentication file by setting the REGISTRY_AUTH_FILE environment variable. export REGISTRY_AUTH_FILE=path β€” go off, customize your life 🌈
  • --cert-dir path β€” use certificates at path (*.crt, *.cert, *.key) to connect to the registry. the default certificates directory is /etc/containers/certs.d. secure girl behavior πŸ”’
  • --compat-auth-file=path β€” instead of updating the default credentials file, update the one at path, and use a Docker-compatible format. for when you gotta speak Docker's language 🐳
  • --get-login β€” return the logged-in user for the registry. return error if no login is found. it's giving "who even are you" 😭
  • --help, -h β€” print usage statement. the classic. the icon. πŸ“–
  • --password, -p β€” password for registry πŸ”
  • --password-stdin β€” take the password from stdin. pipe it in, don't say it out loud bestie 🀫
  • --tls-verify β€” require HTTPS and verification of certificates when talking to container registries (default: true). if explicitly set to true, then TLS verification will be used. if set to false, then TLS verification will not be used. if not specified, TLS verification will be used unless the target registry is listed as an insecure registry in registries.conf. TLS verification cannot be used when talking to an insecure registry. so don't try it, fr fr 🚫
  • --username, -u β€” username for registry πŸ™‹
  • --verbose, -v β€” print detailed information about credential store. spill the tea, credential store β˜•

πŸ“ EXAMPLES πŸ“

$ buildah login quay.io
Username: qiwanredhat
Password:
Login Succeeded!
$ buildah login -u testuser -p testpassword localhost:5000
Login Succeeded!
$ buildah login --authfile ./auth.json quay.io
Username: qiwanredhat
Password:
Login Succeeded!
$ buildah login --tls-verify=false -u test -p test localhost:5000
Login Succeeded!
$ buildah login --cert-dir /etc/containers/certs.d/ -u foo -p bar localhost:5000
Login Succeeded!
$ buildah login -u testuser  --password-stdin < pw.txt quay.io
Login Succeeded!
$ echo $testpassword | buildah login -u testuser --password-stdin quay.io
Login Succeeded!

see that Login Succeeded!? that's the serotonin. every single time. 🌟


πŸ‘‘ SEE ALSO πŸ‘‘

buildah(1), buildah-logout(1), containers-auth.json(5)

like, go read your siblings too, they're all iconic 🫢


aaaand that's the whole page, bestie πŸ’– this one's brought to you by buildah, dated Apr 2019 β€” old but still absolutely eating, no cap. mwah, go log in somewhere cute πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from