.nh .TH buildah\-logout "1" "Apr 2019" "buildah" .SH NAME .PP buildah\-logout \- Logout of a container registry .SH SYNOPSIS .PP \fBbuildah logout\fP [\fIoptions\fP] \fIregistry\fP .SH DESCRIPTION .PP \fBbuildah logout\fP logs out of a specified registry server by deleting the cached credentials stored in the \fBauth.json\fP file. The path of the authentication file can be overridden by the user by setting the \fBauthfile\fP flag. The default path used is \fB${XDG\_RUNTIME\_DIR}/containers/auth.json\fP\&. All the cached credentials can be removed by setting the \fBall\fP flag. .PP \fBbuildah [GLOBAL OPTIONS]\fP .PP \fBbuildah logout [GLOBAL OPTIONS]\fP .PP \fBbuildah logout [OPTIONS] REGISTRY [GLOBAL OPTIONS]\fP .SH OPTIONS .PP \fB\-\-authfile\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. \fB\fCexport REGISTRY\_AUTH\_FILE=path\fR .PP \fB\-\-all\fP, \fB\-a\fP .PP Remove the cached credentials for all registries in the auth file .PP \fB\-\-help\fP, \fB\-h\fP .PP Print usage statement .SH EXAMPLES .PP .RS .nf $ buildah logout docker.io Removed login credentials for docker.io .fi .RE .PP .RS .nf $ buildah logout \-\-authfile authdir/myauths.json docker.io Removed login credentials for docker.io .fi .RE .PP .RS .nf $ buildah logout \-\-all Remove login credentials for all registries .fi .RE .SH SEE ALSO .PP buildah(1), buildah\-login(1)