containerd integration: compute virtualsize#43815
Conversation
daemon/containerd/service.go
Outdated
| } | ||
|
|
||
| var ret []*types.ImageSummary | ||
| snapshotter := cs.client.SnapshotService(containerd.DefaultSnapshotter) |
There was a problem hiding this comment.
DefaultSnapshotter
Will this be configurable in a follow-up PR?
LGTM then
There was a problem hiding this comment.
Yes, we should make this configurable; looks like https://github.com/rumpl/moby is currently only using the default (but that's hard-coded in containerd to overlayfs for Linux), and we should make that configurable, similar to the existing graph drivers (and have feature detection, likely, if we also want automatic selection)
./cc @rumpl
There was a problem hiding this comment.
Indeed we haven't yet added this but we definitely need it, there are some docker commands that will need to have a --snapshotter flag.
a3f9316 to
a38eed2
Compare
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
a38eed2 to
a46ce37
Compare
|
Interesting failure (should not be related?); Details |
| return virtualSize, err | ||
| } | ||
| for _, chainID := range identity.ChainIDs(diffIDs) { | ||
| usage, err := snapshotter.Usage(ctx, chainID.String()) |
There was a problem hiding this comment.
FWIW; some optimisations coming when upstreaming rumpl#17 - let me have a look if I can include that one in this PR
There was a problem hiding this comment.
Actually, that makes things a bit more complicated; let me keep it separate for now
containerd integration: compute virtualsize Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Upstreaming more commits from https://github.com/rumpl/moby
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)