Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip unpacking optimization breaks COPY in multi-stage builds #460

Closed
aduong opened this issue Nov 19, 2018 · 1 comment
Closed

Skip unpacking optimization breaks COPY in multi-stage builds #460

aduong opened this issue Nov 19, 2018 · 1 comment

Comments

@aduong
Copy link
Contributor

aduong commented Nov 19, 2018

Actual behavior
Because of #440, it's possible for a later step to COPY files from an unpacked build and fail because the file does not exist in the /kaniko working area.

Expected behavior
COPYing from any previous build stage should be fine if the file should exist in the stage.

To Reproduce
Run Kaniko on

FROM python:stretch
FROM python:stretch
COPY --from=0 /bin/bash /bin/bash

Admittedly, this particular use case can be handled by COPY --from=python:stretch (#417), but #440 also affects cached RUNs.

@aduong
Copy link
Contributor Author

aduong commented Nov 19, 2018

I'm mistaken. I was experiencing a different problem related to hardlinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant