-
Notifications
You must be signed in to change notification settings - Fork 138
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
How to import images from tar using stream #380
Comments
Yes, I believe it's bounded by 8k due to tokio's default Framing configuration ... happy to take any PR adjustments to make this better. Re. your second point, it got changed to |
Maybe just use |
Hello! I'm currently trying to use the import_image to import a docker image from a *.tar.gz file. I've been testing with the postgres image, creating a 'postgres.tar.gz' file using the docker save command provided by Docker's CLI. However, I continually receive the following error: "exit status 1: unpigz: skipping: : corrupted -- incomplete deflate data\n" despite docker load running perfectly through the CLI. I have tried with other commonly used images and receive the same error. Am I correct in assuming that the root cause of this issue is that
|
bollard/src/image.rs
Line 1351 in d258ede
The issue:
byte_stream.next()
only read the first frame(the default capacity is 8k), not the complete content for large tar file.Think aloud,
import_image
useBytes
asroot_fs
's type, which means we should read the tar file into memory one time, If the file is several gigabytes, this will be annoying.The text was updated successfully, but these errors were encountered: