.nh
.TH podman-init 1
.SH NAME
.PP
podman-init - Initialize one or more containers

.SH SYNOPSIS
.PP
\fBpodman init\fP [\fIoptions\fP] \fIcontainer\fP [\fIcontainer\fP\&...]

.PP
\fBpodman container init\fP [\fIoptions\fP] \fIcontainer\fP [\fIcontainer\fP\&...]

.SH DESCRIPTION
.PP
Initialize one or more containers.
You may use container IDs or names as input.
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.
If a container is not initialized, the \fB\fCpodman start\fR and \fB\fCpodman run\fR commands will do so automatically prior to starting it.
This command is intended to be used for inspecting or modifying the container's filesystem or OCI spec prior to starting it.
This can be used to inspect the container before it runs, or debug why a container is failing to run.

.SH OPTIONS
.SS \fB--all\fP, \fB-a\fP
.PP
Initialize all containers. Containers that have already initialized (including containers that have been started and are running) are ignored.

.SS \fB--latest\fP, \fB-l\fP
.PP
Instead of providing the container name or ID, use the last created container.
Note: the last started container could be from other users of Podman on the host machine.
(This option is not available with the remote Podman client, including Mac and Windows
(excluding WSL2) machines)

.SH EXAMPLE
.PP
Initialize container with a given ID

.PP
.RS

.nf
podman init 35480fc9d568

.fi
.RE

.PP
Initialize container with a given name

.PP
.RS

.nf
podman init test1

.fi
.RE

.PP
Initialize the latest container created by Podman

.PP
.RS

.nf
podman init --latest

.fi
.RE

.SH SEE ALSO
.PP
\fBpodman(1)\fP, \fBpodman-start(1)\fP

.SH HISTORY
.PP
April 2019, Originally compiled by Matthew Heon mheon@redhat.com
\[la]mailto:mheon@redhat.com\[ra]
