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

add support syncfs to fix broken image #3891

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

Conversation

ningmingxiao
Copy link
Contributor

@ningmingxiao ningmingxiao commented Feb 17, 2025

sometimes image will broken after image is download then machine restart.
ref:containerd/containerd@11b7825

Signed-off-by: ningmingxiao <[email protected]>
@ningmingxiao ningmingxiao changed the title add support syncfs add support syncfs to fix broken image Feb 17, 2025
Copy link
Member

@djdongjin djdongjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's okay to add in nerdctl given it's also added in ctr.

But want to understand why we still need this given it was added in the diff plugin containerd/containerd#10284, e.g., which scenairo is not covered by setting this config in diff plugin?

@@ -200,6 +200,7 @@ type ImagePullOptions struct {
// If nil, it will unpack automatically if only 1 platform is specified.
Unpack *bool
// Content for specific platforms. Empty if `--all-platforms` is true
SyncFs bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add some comments for SyncFs or move it to after OCISpecPlatform []v1.Platform. The comment above it is for OCISpecPlatform []v1.Platform

@AkihiroSuda
Copy link
Member

Why do you need this?
Why not just run the sync command?

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.

3 participants