1podman-init(1)              General Commands Manual             podman-init(1)
2
3
4

NAME

6       podman-init - Initialize one or more containers
7
8

SYNOPSIS

10       podman init [options] container [container...]
11
12
13       podman container init [options] container [container...]
14
15

DESCRIPTION

17       Initialize  one or more containers.  You may use container IDs or names
18       as input.  Initializing a container performs all  tasks  necessary  for
19       starting  the  container  (mounting  filesystems, creating an OCI spec,
20       initializing the container network) but does not start  the  container.
21       If a container is not initialized, the podman start and podman run com‐
22       mands will do so automatically prior to starting it.  This  command  is
23       intended  to  be  used  for  inspecting  or  modifying  the container's
24       filesystem or OCI spec prior to starting it.  This can be used  to  in‐
25       spect the container before it runs, or debug why a container is failing
26       to run.
27
28

OPTIONS

30   --all, -a
31       Initialize all containers. Containers  that  have  already  initialized
32       (including  containers  that have been started and are running) are ig‐
33       nored.
34
35
36   --latest, -l
37       Instead of providing the container name or ID,  use  the  last  created
38       container.  If you use methods other than Podman to run containers such
39       as CRI-O, the last started container could  be  from  either  of  those
40       methods.  (This  option is not available with the remote Podman client,
41       including Mac and Windows (excluding WSL2) machines)
42
43

EXAMPLE

45       Initialize container with a given ID
46
47
48              podman init 35480fc9d568
49
50
51
52       Initialize container with a given name
53
54
55              podman init test1
56
57
58
59       Initialize the latest container created by Podman
60
61
62              podman init --latest
63
64
65

SEE ALSO

67       podman(1), podman-start(1)
68
69

HISTORY

71       April  2019,  Originally  compiled  by  Matthew  Heon  mheon@redhat.com
72       ⟨mailto:mheon@redhat.com⟩
73
74
75
76                                                                podman-init(1)
Impressum