-
Epic
-
Resolution: Done
-
Normal
-
rhel-9.5
-
Create --compat-volumes option to Build and Farm Build - RHEL 9.5
-
-
sst_container_tools
-
False
-
-
Yes
-
Dev ack, Docs ack, PXE ack
-
Enhancement
-
-
Done
Description
The --compat-volumes option has been added to the Buildah build command, along with the Podman `build` and `farm build` commands.
It was created with this PR in Buildah: https://github.com/containers/buildah/pull/5604.
This change aligns the build process with Docker's BuildKit. There has been confusion when users have tried using an image created in BuildKit on Podman, and there have been incompatibilities.
The old behavior of handling volumes in the builds can be turned on by setting the `--compat-volumes` option to true in the command line. The default for the option is false, which emulates BuildKit's functionality.
Man page entry for reference:
{}--compat-volumes{}
Handle directories marked using the VOLUME instruction (both in this build, and
those inherited from base images) such that their contents can only be modified
by ADD and COPY instructions. Any changes made in those locations by RUN
instructions will be reverted. Before the introduction of this option, this
behavior was the default, but it is now disabled by default.
- is cloned by
-
RHEL-52240 [RHEL EPIC] Create --compat-volumes option to Build and Farm Build - RHEL 10.0 Beta
- In Progress