Bug 1845345
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: | Build | Assignee: | Adam Kaplan <adam.kaplan> |
Status: | CLOSED ERRATA | QA Contact: | wewang <wewang> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.5 | CC: | adam.kaplan, aos-bugs, dwalsh, ealcaniz, erich, gmontero, jokerman, tsweeney, wjiang, wzheng |
Target Milestone: | --- | ||
Target Release: | 4.5.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1843232 | Environment: | |
Last Closed: | 2020-08-17 20:05:19 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1844596 | ||
Bug Blocks: |
Description
Clayton Coleman
2020-06-08 23:58:30 UTC
Upstream PR at: https://github.com/containers/buildah/pull/2401 working on the vendoring into openshift/builder which is proving problematic. Verified in version: 4.5.0-0.nightly-2020-08-06-215703 Steps: 1. Using Dockerfile as follow to build,build complete ``` FROM docker.io/library/busybox AS build RUN rm -f /bin/paste USER 1001 COPY --from=docker.io/library/busybox /bin/paste /test/ ``` 2. Using Dockerfile as follow to build,build complete ``` FROM docker.io/library/busybox AS test RUN rm -f /bin/nl FROM docker.io/library/alpine AS final COPY --from=docker.io/library/busybox /bin/nl /test/ ``` 3. Using Dockerfile as follow to build,build failed ``` FROM busybox AS test USER 1001 FROM busybox AS build COPY --from=test /bin/cut /test/ COPY --from=build /bin/cp /test/ COPY --from=busybox /bin/paste /test/ ``` [root@wangwen work]# oc logs -f build/test-3 STEP 3: FROM busybox AS build STEP 4: COPY --from=test /bin/cut /test/ STEP 5: COPY --from=build /bin/cp /test/ error: build error: COPY --from=build: no stage or image found with that name Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.5.6 bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:3330 |