-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add cache cleanup option to local cache exporter #1896
Labels
Comments
BuildKit doesn't have an image store. For cleaning up build cache there is |
@tonistiigi It's about the local cache exporter. Atm caches are copied over the existing cache so it keeps growing (#1850). |
tonistiigi
changed the title
Add cache cleanup option
Add cache cleanup option to local cache exporter
Dec 16, 2020
Is there any progress on this option? |
This comment has been minimized.
This comment has been minimized.
michalinacienciala
added a commit
to keep-network/keep-ecdsa
that referenced
this issue
Jun 10, 2021
…pying We've seen a number of workflows failing with `No space left on device` error (e.g. https://github.com/keep-network/keep-ecdsa/actions/runs/924123923). The problem was a combination of a big cache size and significant memory allocation after building Docker image. According to moby/buildkit#1850: "At the moment caches are copied over the existing cache so it keeps growing". As a temporary fix (until issue gets fixed by GH), we introduce a step that moves the cache (similarily to how it's described in moby/buildkit#1896). The solution may not keep us from failures forever, as we still may hit the problems with the full memory if the size of the Docker image or cache increases (see this FD discussion: https://www.flowdock.com/app/cardforcoin/tech/threads/Clml1_lI4HYRKrr3N_vcSInDn6A).
nkuba
pushed a commit
to keep-network/keep-ecdsa
that referenced
this issue
Jun 15, 2021
…pying We've seen a number of workflows failing with `No space left on device` error (e.g. https://github.com/keep-network/keep-ecdsa/actions/runs/924123923). The problem was a combination of a big cache size and significant memory allocation after building Docker image. According to moby/buildkit#1850: "At the moment caches are copied over the existing cache so it keeps growing". As a temporary fix (until issue gets fixed by GH), we introduce a step that moves the cache (similarily to how it's described in moby/buildkit#1896). The solution may not keep us from failures forever, as we still may hit the problems with the full memory if the size of the Docker image or cache increases (see this FD discussion: https://www.flowdock.com/app/cardforcoin/tech/threads/Clml1_lI4HYRKrr3N_vcSInDn6A).
michalinacienciala
added a commit
to keep-network/keep-core
that referenced
this issue
Jun 16, 2021
In `keep-ecdsa` we've seen a number of workflows failing with `No space lefton device` error. The problem was a combination of a big cache size and significant memory allocation after building Docker image. According to moby/buildkit#1850: "At the moment caches are copied over the existing cache so it keeps growing". As a temporary fix (until issue gets fixed by GH), we introduced a step that moves the cache (similarily to how it's described in moby/buildkit#1896) instead of copying. Although we havent seen the problems with cache size yet in other projects than `keep-ecdsa`, we're applying the solution across the repositories to decrease the likelyhood of encountering problem in the future.
michalinacienciala
added a commit
to keep-network/tbtc
that referenced
this issue
Jun 16, 2021
In `keep-ecdsa` we've seen a number of workflows failing with `No space lefton device` error. The problem was a combination of a big cache size and significant memory allocation after building Docker image. According to moby/buildkit#1850: "At the moment caches are copied over the existing cache so it keeps growing". As a temporary fix (until issue gets fixed by GH), we introduced a step that moves the cache (similarily to how it's described in moby/buildkit#1896) instead of copying. Although we havent seen the problems with cache size yet in other projects than `keep-ecdsa`, we're applying the solution across the repositories to decrease the likelyhood of encountering problem in the future.
michalinacienciala
added a commit
to keep-network/tbtc-dapp
that referenced
this issue
Jun 16, 2021
In `keep-ecdsa` we've seen a number of workflows failing with `No space lefton device` error. The problem was a combination of a big cache size and significant memory allocation after building Docker image. According to moby/buildkit#1850: "At the moment caches are copied over the existing cache so it keeps growing". As a temporary fix (until issue gets fixed by GH), we introduced a step that moves the cache (similarily to how it's described in moby/buildkit#1896) instead of copying. Although we havent seen the problems with cache size yet in other projects than `keep-ecdsa`, we're applying the solution across the repositories to decrease the likelyhood of encountering problem in the future.
Any news? |
mdegat01
added a commit
to mdegat01/addon-hedgedoc
that referenced
this issue
Nov 10, 2021
Appears there is an issue where the build cache grows unbounded until it hits Github's limit (docker/build-push-action#252, moby/buildkit#1896). Clear the cache after builds to prevent this
mdegat01
added a commit
to mdegat01/addon-promtail
that referenced
this issue
Nov 10, 2021
Appears there is an issue where the build cache grows unbounded until it hits Github's limit (docker/build-push-action#252, moby/buildkit#1896). Clear the cache after builds to prevent this
mdegat01
added a commit
to mdegat01/addon-sharry
that referenced
this issue
Nov 10, 2021
Appears there is an issue where the build cache grows unbounded until it hits Github's limit (docker/build-push-action#252, moby/buildkit#1896). Clear the cache after builds to prevent this
mdegat01
added a commit
to mdegat01/addon-loki
that referenced
this issue
Nov 10, 2021
Appears there is an issue where the build cache grows unbounded until it hits Github's limit (docker/build-push-action#252, moby/buildkit#1896). Clear the cache after builds to prevent this.
mdegat01
added a commit
to mdegat01/promtail-journal
that referenced
this issue
Nov 10, 2021
Appears there is an issue where the build cache grows unbounded until it hits Github's limit (docker/build-push-action#252, moby/buildkit#1896). Clear the cache after builds to prevent this.
4 tasks
It's been over 2 years, is there any news about this issue? |
LGTM 👍 💯 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Implemented an option to remove old versions of a newly created image and images older than a specified time.
Reason/Usecase: docker/build-push-action#252
My temporarily solution: docker/build-push-action#252 (comment)
The text was updated successfully, but these errors were encountered: