Bug 1843232
| Summary: | Unable to build multi-stage image that has a --from=X that matches FROM X | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Clayton Coleman <ccoleman> | |
| Component: | Containers | Assignee: | Tom Sweeney <tsweeney> | |
| Status: | CLOSED DUPLICATE | QA Contact: | weiwei jiang <wjiang> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.5 | CC: | adam.kaplan, aos-bugs, dwalsh, ealcaniz, erich, jokerman, tsweeney, wzheng | |
| Target Milestone: | --- | |||
| Target Release: | 4.6.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: |
Cause: buildah did not correctly handle COPY --from=X instructions if the --from option referenced an image
Consequence: Multistage Dockerfile images fail to build
Fix: buildah updated to copy from an image as well as a build step
Result: Multistage Dockerfile builds of this type succeed
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1844596 1845345 (view as bug list) | Environment: | ||
| Last Closed: | 2020-08-19 21:05:36 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
|
Description
Clayton Coleman
2020-06-02 20:27:24 UTC
This did not make it to 4.5/master - this merged in buildah master, but is not available in a v1.14.z stream. Openshift/builder currently uses buildah v1.14.2 [1]. Moving this to the Containers team so that we get this backported to buildah v1.14.z, and cloning to ensure this gets into builds. [1] https://github.com/openshift/builder/blob/release-4.5/go.mod Upstream PR at: https://github.com/containers/buildah/pull/2401. Vendoring underway with this PR: https://github.com/openshift/builder/pull/160 |