Open Nereuxofficial opened 3 months ago
It looks like the looper tarball was created with container_export
or the docker container export
command, which is not the same as the image export facility. The former exports the FS, while the latter is exporting the image and related metadata..
I recently added this crate to my project to deal with the docker API and it works really well and has a lot of documentation, which is great!
However i noticed a weird difference in behaviour between the docker import command and importing using this crate. I have a fairly small container started using this command:
and created an image for it using docker export(also works via the crate fine in my testing).
However importing the archive fails with this error, which indicates a missing file:
This file is not present in the archive as far as i can see, however importing it using
docker import
works just fine. Now it may well be that this bug is due to a mistake I've made during the implementation but i could not yet find it so any help would be appreciated :)I have created a reproduction example in a fork of this repo, which also has an example file to import it. Running it should be as simple as:
And via docker:
On another note i also noticed that the example code for importing is incorrect and errors out with an EOF error, probably due to only parsing the first chunk. I will later create a PR for that if it is something that should be fixed.