-
Notifications
You must be signed in to change notification settings - Fork 608
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
load cmd support gzip #587
Conversation
in = bzip2.NewReader(inbuf) | ||
} else { | ||
in = inbuf | ||
} |
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 for working on this, but I'd suggest using https://pkg.go.dev/github.com/containerd/containerd/archive/compression#DecompressStream
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.
DecompressStream
only supports gzip and zstd.
https://github.com/containerd/containerd/blob/main/archive/compression/compression.go#L169
but docker load
support gzip and bzip2.
https://docs.docker.com/engine/reference/commandline/load/#extended-description
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.
Then we should fix containerd/containerd
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.
Anyway, supporting bzip2 is probably not important. Is anyone really using bzip2 for Docker v1 archives?
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.
@AkihiroSuda I first change to usingDecompressStream
.
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
Signed-off-by: ye.sijun <[email protected]>
Fixes #581