NAME 名称

podman-logout - Log out of a container registry
podman-logout - 退出容器注册表

SYNOPSIS 概要

podman logout [options] registry
podman 注销[选项]注册表

DESCRIPTION 描述

podman logout logs out of a specified registry server by deleting the cached credentials stored in the auth.json file. If the registry is not specified, the first registry under [registries.search] from registries.conf is used. The path of the authentication file can be overridden by the user by setting the authfile flag. The default path used is ${XDG_RUNTIME_DIR}/containers/auth.json. For more details about format and configurations of the auth,json file, see containers-auth.json(5) All the cached credentials can be removed by setting the all flag.
podman 注销会通过删除存储在 auth.json 文件中的缓存凭据来注销指定的注册表服务器。如果未指定注册表,则将使用 registries.conf 中[registries.search]下的第一个注册表。用户可以通过设置 authfile 标志来覆盖认证文件的路径。默认使用的路径是${XDG_RUNTIME_DIR}/containers/auth.json。有关 auth.json 文件的格式和配置的更多详细信息,请参阅 containers-auth.json(5)。通过设置 all 标志,可以删除所有缓存的凭据。

podman [GLOBAL OPTIONS] podman [全局选项]

podman logout [GLOBAL OPTIONS]
podman 注销[全局选项]

podman logout [OPTIONS] REGISTRY [GLOBAL OPTIONS]
podman 注销[选项]注册表[全局选项]

OPTIONS 选项

--all, -a

Remove the cached credentials for all registries in the auth file
删除身份验证文件中所有注册表的缓存凭据

--authfile=path

Path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json on Linux, and $HOME/.config/containers/auth.json on Windows/macOS. The file is created by podman login. If the authorization state is not found there, $HOME/.docker/config.json is checked, which is set using docker login.
认证文件的路径。在 Linux 上默认为 ${XDG_RUNTIME_DIR}/containers/auth.json ,在 Windows/macOS 上默认为 $HOME/.config/containers/auth.json 。该文件由 podman login 创建。如果授权状态未在那里找到,则会检查 $HOME/.docker/config.json ,该值是使用 docker login 设置的。

Note: There is also the option to override the default path of the authentication file by setting the REGISTRY_AUTH_FILE environment variable. This can be done with export REGISTRY_AUTH_FILE=path.
注意:还有一种选择,可以通过设置 REGISTRY_AUTH_FILE 环境变量来覆盖认证文件的默认路径。可以通过 export REGISTRY_AUTH_FILE=path 来实现。

--compat-auth-file=path
--compat-auth-file=路径

Instead of updating the default credentials file, update the one at path, and use a Docker-compatible format.
而不是更新默认凭据文件,请更新路径中的文件,并使用与 Docker 兼容的格式。

--help, -h --help,-h ¶

Print usage statement 打印使用说明

EXAMPLES 示例

Remove login credentials for the docker.io registry from the authentication file:
从认证文件中删除 docker.io 注册表的登录凭据

$ podman logout docker.io

Remove login credentials for the docker.io registry from the authdir/myauths.json file:
从 authdir/myauths.json 文件中删除 docker.io 注册表的登录凭据

$ podman logout --authfile authdir/myauths.json docker.io

Remove login credentials for all registries:
删除所有注册表的登录凭据

$ podman logout --all

SEE ALSO 参见 ¶

podman(1), podman-login(1), containers-auth.json(5)

HISTORY 历史 ¶

August 2017, Originally compiled by Urvashi Mohnani umohnani@redhat.com
2017 年 8 月,最初由 Urvashi Mohnani umohnani@redhat.com 编写