docker / docker/buildx

[containerd-snapshotter] add support to prune build cache type=regular

Open
#4,053 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement status/triage
Dominant language
Go
Stars
4.5k
Forks
682
Avg merge
2d 14h
Merged PRs (30d)
29

Description

Description

do:

  1. docker build
  2. docker system prune --all --volumes
  3. docker buildx prune -a -f
  4. docker system df -v

still show build cache with cache type=regular

/etc/docker/daemon.json

{
  "data-root": "/mnt/other_disk/docker_store",
  "default-address-pools": [
    {
      "base": "100.100.0.0/12",
      "size": 16
    }
  ],
  "features": {
    "containerd-snapshotter": true
  }
}

/etc/containerd/config.toml

disabled_plugins = ["cri"]
root = "/mnt/other_disk/containerd-data"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the commands and configuration shown, especially the containerd snapshotter settings in daemon.json and config.toml. Start by tracing how buildx prune and Docker system df classify and remove cache type=regular; done when the regular cache is pruned and no longer appears in the disk-usage output.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.