containerd / containerd/nerdctl
Squash image layers.
Open
kind/feature
- Dominant language
- Go
- Stars
- 10.4k
- Forks
- 826
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 44
Description
### What is the problem you're trying to solve
After committing a container, the commit image will continuously grow larger. Squashing the commit image layers can effectively reduce the size of the commit image.
### Describe the solution you'd like
example commands:
```bash
# squash last 2 layers.
nerdctl squash docker.io/library/busybox:latest --from-layer 2 --tag docker.io/library/busybox:squash
```
### Additional context
ref: https://github.com/goldmann/docker-squash
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.