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

COPY directory and --cache-copy-layers #1877

Closed
RoSk0 opened this issue Jan 11, 2022 · 1 comment · Fixed by #2559
Closed

COPY directory and --cache-copy-layers #1877

RoSk0 opened this issue Jan 11, 2022 · 1 comment · Fixed by #2559
Milestone

Comments

@RoSk0
Copy link

RoSk0 commented Jan 11, 2022

I have a multistage Dockerfile which has COPY commands in multiple stages copying contents of directories. In one instance the directory contains files as a direct children. In another, it's a mix with files and many directories which also have files and directories.

When files changed in the first directory Kaniko notices it and runs COPY command, but when files change in the seconds, couple levels down from the directory root, Kaniko uses cached layer.

The questions I have are:

  1. Do I use it correctly or not ?
  2. Are my expectations reasonable and this is a bug ?
@dradetsky
Copy link
Contributor

Kaniko doesn't properly support --cache-copy-layers in multistage builds. I've made a PR to fail fast in this case #2227

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

Successfully merging a pull request may close this issue.

3 participants