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

     1  % podman-version 1
     2  
     3  ## NAME
     4  podman\-version - Display the Podman version information
     5  
     6  ## SYNOPSIS
     7  **podman version** [*options*]
     8  
     9  ## DESCRIPTION
    10  Shows the following information: Remote API Version, Version, Go Version, Git Commit, Build Time,
    11  OS, and Architecture.
    12  
    13  ## OPTIONS
    14  
    15  #### **--format**, **-f**=*format*
    16  
    17  Change output format to "json" or a Go template.
    18  
    19  | **Placeholder**     | **Description**          |
    20  | ------------------- | ------------------------ |
    21  | .Client ...         | Version of local podman  |
    22  | .Server ...         | Version of remote podman |
    23  
    24  Each of the above fields branch deeper into further subfields
    25  such as .Version, .APIVersion, .GoVersion, and more.
    26  
    27  ## Example
    28  
    29  A sample output of the `version` command:
    30  ```
    31  $ podman version
    32  Version:      2.0.0
    33  API Version:  1
    34  Go Version:   go1.14.2
    35  Git Commit:   4520664f63c3a7f9a80227715359e20069d95542
    36  Built:        Tue May 19 10:48:59 2020
    37  OS/Arch:      linux/amd64
    38  ```
    39  
    40  Filtering out only the version:
    41  ```
    42  $ podman version --format '{{.Client.Version}}'
    43  2.0.0
    44  ```
    45  
    46  #### **--help**, **-h**
    47  
    48  Print usage statement
    49  
    50  ## SEE ALSO
    51  **[podman(1)](podman.1.md)**
    52  
    53  ## HISTORY
    54  November 2018, Added --format flag by Tomas Tomecek <ttomecek@redhat.com>
    55  July 2017, Originally compiled by Urvashi Mohnani <umohnani@redhat.com>