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

RUN Layers are not being cached properly #3254

Open
UmairShahid95 opened this issue Jul 15, 2024 · 2 comments
Open

RUN Layers are not being cached properly #3254

UmairShahid95 opened this issue Jul 15, 2024 · 2 comments
Labels
area/apt all bug for apt install related commands area/caching For all bugs related to cache issues area/layers kind/bug Something isn't working priority/p2 High impact feature/bug. Will get a lot of users happy

Comments

@UmairShahid95
Copy link

Actual behavior
The following directive:

RUN apt-get update -y &&
apt-get install -y postgresql-client

gets cached but the cache is not used in the subsequent runs
--cache=true is activated

Expected behavior

it should be cached properly and cache should be utilized in subsequent runs

@aaron-prindle aaron-prindle added area/caching For all bugs related to cache issues kind/bug Something isn't working priority/p2 High impact feature/bug. Will get a lot of users happy area/apt all bug for apt install related commands area/layers labels Jul 16, 2024
@anselms
Copy link

anselms commented Aug 19, 2024

Same issue here. For

RUN apt-get update && apt-get install --assume-yes --no-install-recommends \
    nginx tini libpango-1.0-0 libpangoft2-1.0-0 && \
    rm -rf /var/cache/apt/archives/*

the cache is never used.

@anselms
Copy link

anselms commented Oct 15, 2024

BTW, this does not seem to share the root cause with #3246, as we observe this caching problem without using WORKDIR in our Dockerfile (and neither is WORKDIR used in the base image)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/apt all bug for apt install related commands area/caching For all bugs related to cache issues area/layers kind/bug Something isn't working priority/p2 High impact feature/bug. Will get a lot of users happy
Projects
None yet
Development

No branches or pull requests

3 participants