2017-04-14 03:42:04 +08:00
|
|
|
## buildah-commit "1" "March 2017" "buildah"
|
2017-03-29 03:37:24 +08:00
|
|
|
|
|
|
|
## NAME
|
2017-04-14 03:42:04 +08:00
|
|
|
buildah commit - Create an image from a working container.
|
2017-03-29 03:37:24 +08:00
|
|
|
|
|
|
|
## SYNOPSIS
|
2017-04-14 03:42:04 +08:00
|
|
|
**buildah** **commit** [*options* [...]] **containerID** [**imageName**]
|
2017-03-29 03:37:24 +08:00
|
|
|
|
|
|
|
## DESCRIPTION
|
2017-04-14 03:42:04 +08:00
|
|
|
Writes a new image using the specified container's read-write layer and if it
|
|
|
|
is based on an image, the layers of that image. If an image name is not
|
|
|
|
specified, an ID is assigned, but no name is assigned to the image.
|
2017-03-29 03:37:24 +08:00
|
|
|
|
|
|
|
## OPTIONS
|
|
|
|
|
|
|
|
**--disable-compression**
|
|
|
|
|
2017-04-14 03:42:04 +08:00
|
|
|
Don't compress filesystem layers when building the image.
|
|
|
|
|
|
|
|
**--signature-policy**
|
|
|
|
|
|
|
|
Pathname of a signature policy file to use. It is not recommended that this
|
|
|
|
option be used, as the default behavior of using the system-wide default policy
|
|
|
|
(frequently */etc/containers/policy.json*) is most often preferred.
|
2017-03-29 03:37:24 +08:00
|
|
|
|
2017-05-09 23:56:44 +08:00
|
|
|
**--quiet**
|
|
|
|
|
|
|
|
When writing the output image, suppress progress output.
|
|
|
|
|
2017-05-18 05:02:40 +08:00
|
|
|
**--format**
|
|
|
|
|
|
|
|
Control the format for the image manifest and configuration data. Recognized
|
|
|
|
formats include *oci* (OCI image-spec v1.0, the default) and *docker* (version
|
|
|
|
2, using schema format 2 for the manifest).
|
|
|
|
|
2017-06-07 02:11:46 +08:00
|
|
|
**--reference-time**
|
|
|
|
|
|
|
|
Sets the creation date in the image to match the last-modified time of the
|
|
|
|
specified file. This option is mainly present for use in buildah's self-tests.
|
|
|
|
|
2017-03-29 03:37:24 +08:00
|
|
|
## EXAMPLE
|
2017-04-14 03:42:04 +08:00
|
|
|
|
|
|
|
buildah commit containerID
|
|
|
|
|
|
|
|
buildah commit containerID newImageName
|
|
|
|
|
|
|
|
buildah commit --disable-compression --signature-policy '/etc/containers/policy.json' containerID
|
|
|
|
|
|
|
|
buildah commit --disable-compression --signature-policy '/etc/containers/policy.json' containerID newImageName
|
2017-03-29 03:37:24 +08:00
|
|
|
|
|
|
|
## SEE ALSO
|
|
|
|
buildah(1)
|