github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/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  #### **--help**, **-h**
    16  
    17  Print usage statement
    18  
    19  #### **--format**, **-f**=*format*
    20  
    21  Change output format to "json" or a Go template.
    22  
    23  ## Example
    24  
    25  A sample output of the `version` command:
    26  ```
    27  $ podman version
    28  Version:      2.0.0
    29  API Version:  1
    30  Go Version:   go1.14.2
    31  Git Commit:   4520664f63c3a7f9a80227715359e20069d95542
    32  Built:        Tue May 19 10:48:59 2020
    33  OS/Arch:      linux/amd64
    34  ```
    35  
    36  Filtering out only the version:
    37  ```
    38  $ podman version --format '{{.Client.Version}}'
    39  2.0.0
    40  ```
    41  
    42  ## SEE ALSO
    43  podman(1)
    44  
    45  ## HISTORY
    46  November 2018, Added --format flag by Tomas Tomecek <ttomecek@redhat.com>
    47  July 2017, Originally compiled by Urvashi Mohnani <umohnani@redhat.com>