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

     1  % podman-export 1
     2  
     3  ## NAME
     4  podman\-export - Export a container's filesystem contents as a tar archive
     5  
     6  ## SYNOPSIS
     7  **podman export** [*options*] *container*
     8  
     9  **podman container export** [*options*] *container*
    10  
    11  ## DESCRIPTION
    12  **podman export** exports the filesystem of a container and saves it as a tarball
    13  on the local machine. **podman export** writes to STDOUT by default and can be
    14  redirected to a file using the `--output` flag.
    15  The image of the container exported by **podman export** can be imported by **podman import**.
    16  To export image(s) with parent layers, use **podman save**.
    17  Note: `:` is a restricted character and cannot be part of the file name.
    18  
    19  **podman [GLOBAL OPTIONS]**
    20  
    21  **podman export [GLOBAL OPTIONS]**
    22  
    23  **podman export [OPTIONS] CONTAINER**
    24  
    25  ## OPTIONS
    26  
    27  #### **--help**, **-h**
    28  
    29  Print usage statement
    30  
    31  #### **--output**, **-o**
    32  
    33  Write to a file, default is STDOUT
    34  
    35  ## EXAMPLES
    36  
    37  Export container into specified tar ball:
    38  ```
    39  $ podman export -o redis-container.tar 883504668ec465463bc0fe7e63d53154ac3b696ea8d7b233748918664ea90e57
    40  ```
    41  
    42  Export container to stdout:
    43  ```
    44  $ podman export 883504668ec465463bc0fe7e63d53154ac3b696ea8d7b233748918664ea90e57 > redis-container.tar
    45  ```
    46  
    47  ## SEE ALSO
    48  **[podman(1)](podman.1.md)**, **[podman-import(1)](podman-import.1.md)**
    49  
    50  ## HISTORY
    51  August 2017, Originally compiled by Urvashi Mohnani <umohnani@redhat.com>