Skip to content
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

Forward all labels to the snapshotter #1

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

mendsley
Copy link
Member

@mendsley mendsley commented Nov 1, 2024

Ideally we would have separate snapshotter labels such as with the --snapshotter-label option to ctr container create. The containerd daemon will automatically filter out labels that don't match a snapshotter and I really don't want to add a new field to the server API right now. /shurg

Ideally we would have separate snapshotter labels such as with the
`--snapshotter-label` option to `ctr container create`. The containerd
daemon will automatically filter out labels that don't match a
snapshotter and I really don't want to add a new field to the server
API right now. /shurg
@mendsley
Copy link
Member Author

mendsley commented Nov 1, 2024

After this change the command
docker run --rm -it mcr.microsoft.com/windows/servercore:ltsc2022 powershell -Command "(gdr C).Free + (gdr C).Used"
Prints the default 20G: 21339549696

Adding the windows snapshotter label with the command
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"
Prints: 32076963840

@mendsley mendsley marked this pull request as ready for review November 1, 2024 10:57
@mendsley mendsley merged commit 20ffba7 into master Nov 1, 2024
20 of 25 checks passed
@mendsley mendsley deleted the mendsley/snapshot_labels branch November 1, 2024 10:57
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