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

     1  % podman-init 1
     2  
     3  ## NAME
     4  podman\-init - Initialize one or more containers
     5  
     6  ## SYNOPSIS
     7  **podman init** [*options*] *container* [*container*...]
     8  
     9  **podman container init** [*options*] *container* [*container*...]
    10  
    11  ## DESCRIPTION
    12  Initialize one or more containers.
    13  You may use container IDs or names as input.
    14  Initializing a container performs all tasks necessary for starting the container (mounting filesystems, creating an OCI spec, initializing the container network) but does not start the container.
    15  If a container is not initialized, the `podman start` and `podman run` commands initialize it automatically prior to starting it.
    16  This command is intended to be used for inspecting a container's filesystem or OCI spec prior to starting it.
    17  This can be used to inspect the container before it runs, or debug why a container is failing to run.
    18  
    19  ## OPTIONS
    20  
    21  #### **--all**, **-a**
    22  
    23  Initialize all containers. Containers that have already initialized (including containers that have been started and are running) are ignored.
    24  
    25  @@option latest
    26  
    27  ## EXAMPLE
    28  
    29  Initialize specified container with a given ID.
    30  ```
    31  podman init 35480fc9d568
    32  ```
    33  
    34  Initialize specified container with a given name.
    35  ```
    36  podman init test1
    37  ```
    38  
    39  Initialize the latest container. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
    40  ```
    41  podman init --latest
    42  ```
    43  ## SEE ALSO
    44  **[podman(1)](podman.1.md)**, **[podman-start(1)](podman-start.1.md)**
    45  
    46  ## HISTORY
    47  April 2019, Originally compiled by Matthew Heon <mheon@redhat.com>