containerd / containerd/nerdctl

Squash image layers.

Open
#3,252 5 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.