You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior
We use Kaniko to build two images with the same Dockerfile. One is for x86 architecture and the other one is for Arm64. The x86 image is built using a x86 node. The Arm64 image is built using an Arm64 node. When we set the --cache-repo as the ECR repo, Kaniko sometimes stores the same cache layer for both architectures into the same ECR repo. This results in the Arm64 docker image not being compatible with Arm64 architecture as some layers were built with x86. Is there a way to specify the layer that corresponds to each architecture?
Expected behavior
Each docker image should use the cache layer that corresponds to the architecture that was used to build the docker image.
To Reproduce
Steps to reproduce the behavior:
...
...
Additional Information
Dockerfile
Please provide either the Dockerfile you're trying to build or one that can reproduce this error.
Build Context
Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
Kaniko Image (fully qualified with digest)
Triage Notes for the Maintainers
Description
Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
The text was updated successfully, but these errors were encountered:
Actual behavior
We use Kaniko to build two images with the same Dockerfile. One is for x86 architecture and the other one is for Arm64. The x86 image is built using a x86 node. The Arm64 image is built using an Arm64 node. When we set the
--cache-repo
as the ECR repo, Kaniko sometimes stores the same cache layer for both architectures into the same ECR repo. This results in the Arm64 docker image not being compatible with Arm64 architecture as some layers were built with x86. Is there a way to specify the layer that corresponds to each architecture?Expected behavior
Each docker image should use the cache layer that corresponds to the architecture that was used to build the docker image.
To Reproduce
Steps to reproduce the behavior:
Additional Information
Please provide either the Dockerfile you're trying to build or one that can reproduce this error.
Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: