Skip to content

Mendsley/snapshot labels #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mendsley
Copy link
Member

No description provided.

@mendsley mendsley force-pushed the mendsley/snapshot_labels branch 30 times, most recently from 7ccb91c to a8db7db Compare April 30, 2025 06:53
@mendsley mendsley force-pushed the mendsley/snapshot_labels branch 8 times, most recently from cc47a15 to aff966a Compare April 30, 2025 07:07
This is primarily motivated by the desire to create windows containers
with a rootfs size larger than the snapshotter default.

This can be acheived with the `ctr run` command with the
`--snapshotter-label` argument. The snapshotter filters labels for which
it has an interest and ignores others, so this change simply forwards
all supplied labels instead of making an API change.

For the two cases below the commands run are:

1. `docker run --rm -it mcr.microsoft.com/windows/servercore:ltsc2022 powershell -Command "(gdr C).Free + (gdr C).Used"`
2. `docker run --label "containerd.io/snapshot/windows/rootfs.sizebytes=32212254720" --rm -it mcr.microsoft.com/windows/servercore:ltsc2022 powershell -Command "(gdr C).Free + (gdr C).Used"`

Before this change:
-------------------
Output from 1: `21339549696`
Output from 2: `21339549696`

After this change:
------------------
Output from 1: `21339549696`
Output from 2: `32076963840`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant