github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-logout.1.md.in (about)

     1  % podman-logout 1
     2  
     3  ## NAME
     4  podman\-logout - Log out of a container registry
     5  
     6  ## SYNOPSIS
     7  **podman logout** [*options*] *registry*
     8  
     9  ## DESCRIPTION
    10  **podman logout** logs out of a specified registry server by deleting the cached credentials
    11  stored in the **auth.json** file. If the registry is not specified, the first registry under [registries.search]
    12  from registries.conf is used. The path of the authentication file can be overridden by the user by setting the **authfile** flag.
    13  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)
    14  All the cached credentials can be removed by setting the **all** flag.
    15  
    16  **podman [GLOBAL OPTIONS]**
    17  
    18  **podman logout [GLOBAL OPTIONS]**
    19  
    20  **podman logout [OPTIONS] REGISTRY [GLOBAL OPTIONS]**
    21  
    22  ## OPTIONS
    23  
    24  #### **--all**, **-a**
    25  
    26  Remove the cached credentials for all registries in the auth file
    27  
    28  @@option authfile
    29  
    30  #### **--compat-auth-file**=*path*
    31  
    32  Instead of updating the default credentials file, update the one at *path*, and use a Docker-compatible format.
    33  
    34  #### **--help**, **-h**
    35  
    36  Print usage statement
    37  
    38  ## EXAMPLES
    39  
    40  Remove login credentials for the docker.io registry from the authentication file:
    41  ```
    42  $ podman logout docker.io
    43  ```
    44  
    45  Remove login credentials for the docker.io registry from the authdir/myauths.json file:
    46  ```
    47  $ podman logout --authfile authdir/myauths.json docker.io
    48  ```
    49  
    50  Remove login credentials for all registries:
    51  ```
    52  $ podman logout --all
    53  ```
    54  
    55  ## SEE ALSO
    56  **[podman(1)](podman.1.md)**, **[podman-login(1)](podman-login.1.md)**, **[containers-auth.json(5)](https://github.com/containers/image/blob/main/docs/containers-auth.json.5.md)**
    57  
    58  ## HISTORY
    59  August 2017, Originally compiled by Urvashi Mohnani <umohnani@redhat.com>