-
Notifications
You must be signed in to change notification settings - Fork 642
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 to overlaybd convert #1517
Conversation
20777a2
to
ce06425
Compare
@AkihiroSuda @fuweid |
return errors.New("option --nydus conflicts with --zstdchunked") | ||
} | ||
if !oci { | ||
logrus.Warnln("option --nydus should be used in conjunction with '--oci', forcibly enabling on oci mediatype for nydus conversion") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where has this gone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L188-205 to deal with convert conflict, and L260-262 to show this warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but "forcibly enabling on oci mediatype for nydus conversion" seems no longer printed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but "forcibly enabling on oci mediatype for nydus conversion" seems no longer printed
Sorry, it was fixed.
cmd/nerdctl/image_convert.go
Outdated
if !oci { | ||
logrus.Warnf("option --%s should be used in conjunction with --oci", convertType) | ||
logrus.Warnf("option --%s should be used in conjunction with --oci, forcibly enabling on oci mediatype for %s conversion", convertType, convertType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"forcibly enabling on oci mediatype" is untrue for estargz.
True for Nydus. Not sure for overlaybd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it was fixed in here, mediatype
with/without --oci
has been confirmed.
Signed-off-by: Haoqi Miao <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
This PR supports using nerdctl image convert to convert docker v2 or OCI images to OverlayBD images.
Before the conversion, users should have the
overlaybd-snapshotter
binary installed, which build from accelerated-container-image. They can run the command likenerdctl image convert --overlaybd --oci <source_image> <target_image>
to convert a docker v2 or OCI image to a OverlayBD image whose tag is<target_image>
.After the conversion, they can use the nerdctl image push command to push the converted OverlayBD image to their registry and then use the
nerdctl run --snapshotter overlaybd
to run the image.Signed-off-by: Haoqi Miao [email protected]