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

--cache-to pushes base image as part of cache bundle #5449

Open
aaronlehmann opened this issue Apr 1, 2024 · 2 comments
Open

--cache-to pushes base image as part of cache bundle #5449

aaronlehmann opened this issue Apr 1, 2024 · 2 comments

Comments

@aaronlehmann
Copy link
Contributor

aaronlehmann commented Apr 1, 2024

Description

When using --cache-to to push cache to a registry, buildah appears to include the base image referenced in the FROM line in the cache bundle it pushes to the registry. When dealing with very large base images, this can make the cache push very slow. It doesn't seem useful to push a base image to cache because this isn't something that was actually produced by the build. Would it be possible to omit this from the cache images pushed to the repository specified in --cache-to?

Steps to reproduce the issue:

  1. Build an image using --cache-to

Describe the results you received:

  1. Cache image pushed to registry is large and includes base image referenced by FROM line

Describe the results you expected:

  1. Only newly built layers are pushed to cache.

Output of buildah version:

Version:         1.36.0-dev
Go Version:      go1.22.1
Image Spec:      1.1.0
Runtime Spec:    1.1.0
CNI Spec:        1.0.0
libcni Version:  v1.1.2
image Version:   5.30.0
Git Commit:      39ea15cedd36acc0b5c0a35c597be9e850832e16-dirty
Built:           Sun Mar 31 00:49:16 2024
OS/Arch:         linux/amd64
BuildPlatform:   linux/amd64
@rhatdan
Copy link
Member

rhatdan commented Apr 5, 2024

@flouthoc WDYT?

Copy link

github-actions bot commented May 6, 2024

A friendly reminder that this issue had no activity for 30 days.

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

No branches or pull requests

2 participants