"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/buildah-commit.md" between
buildah-1.22.3.tar.gz and buildah-1.23.0.tar.gz

About: Buildah is a tool that facilitates building Open Container Initiative (OCI) container images.

buildah-commit.md  (buildah-1.22.3):buildah-commit.md  (buildah-1.23.0)
skipping to change at line 72 skipping to change at line 72
formats include *oci* (OCI image-spec v1.0, the default) and *docker* (version formats include *oci* (OCI image-spec v1.0, the default) and *docker* (version
2, using schema format 2 for the manifest). 2, using schema format 2 for the manifest).
Note: You can also override the default format by setting the BUILDAH\_FORMAT Note: You can also override the default format by setting the BUILDAH\_FORMAT
environment variable. `export BUILDAH\_FORMAT=docker` environment variable. `export BUILDAH\_FORMAT=docker`
**--iidfile** *ImageIDfile* **--iidfile** *ImageIDfile*
Write the image ID to the file. Write the image ID to the file.
**--manifest** "manifest" **--manifest** "listName"
Name of the manifest list to which the image will be added. Creates the manifest list Name of the manifest list to which the built image will be added. Creates the ma nifest list
if it does not exist. This option is useful for building multi architecture imag es. if it does not exist. This option is useful for building multi architecture imag es.
**--quiet**, **-q** **--quiet**, **-q**
When writing the output image, suppress progress output. When writing the output image, suppress progress output.
**--rm** **--rm**
Remove the working container and its contents after creating the image. Remove the working container and its contents after creating the image.
Default leaves the container and its content in place. Default leaves the container and its content in place.
skipping to change at line 133 skipping to change at line 133
This example commits the container to the image on the local registry using cred entials and certificates for authentication. This example commits the container to the image on the local registry using cred entials and certificates for authentication.
`buildah commit --cert-dir ~/auth --tls-verify=true --creds=username:password containerID docker://localhost:5000/imageId` `buildah commit --cert-dir ~/auth --tls-verify=true --creds=username:password containerID docker://localhost:5000/imageId`
This example commits the container to the image on the local registry using cred entials from the /tmp/auths/myauths.json file and certificates for authenticatio n. This example commits the container to the image on the local registry using cred entials from the /tmp/auths/myauths.json file and certificates for authenticatio n.
`buildah commit --authfile /tmp/auths/myauths.json --cert-dir ~/auth --tls-ver ify=true --creds=username:password containerID docker://localhost:5000/imageName ` `buildah commit --authfile /tmp/auths/myauths.json --cert-dir ~/auth --tls-ver ify=true --creds=username:password containerID docker://localhost:5000/imageName `
This example saves an image based on the container, but stores dates based on ep och time. This example saves an image based on the container, but stores dates based on ep och time.
`buildah commit --timestamp=0 containerID newImageName` `buildah commit --timestamp=0 containerID newImageName`
### Building an multi-architecture image using a --manifest option (Requires emu lation software) ### Building an multi-architecture image using the --manifest option (requires e mulation software)
``` ```
#!/bin/sh #!/bin/sh
build() { build() {
ctr=$(./bin/buildah from --arch $1 ubi8) ctr=$(./bin/buildah from --arch $1 ubi8)
./bin/buildah run $ctr dnf install -y iputils ./bin/buildah run $ctr dnf install -y iputils
./bin/buildah commit --manifest ubi8ping $ctr ./bin/buildah commit --manifest ubi8ping $ctr
} }
build arm build arm
build amd64 build amd64
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)