-
Notifications
You must be signed in to change notification settings - Fork 68
BugFix for docker/save-and-load remove image before try to load it again (BugFix) #2018
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
Conversation
Signed-off-by: Lincoln Wallace <lincoln.wallace@canonical.com>
Hello, thanks for this, please provide at least a submission to prove this works |
- fix: stop using I/O redirection During docker save command, the `ubuntu.tar` file saved was actually an empty file. After changing the save operation to use `-i` the test still failing. Then after changing the load operation to not use the redirection it worked. - feat: Prune image before load back Delete all image layers before trying to load Signed-off-by: Lincoln Wallace <lincoln.wallace@canonical.com>
@Hook25 At first when I tried to run with my change it didn't work. Then I revert it, but still, it doesn't work. After investigating, I saw that the IO redirection for the save and load command weren't working inside Checkbox. Outside it works fine. So I changed the method to use to save and load the tarball, and now the tests passes. Here is the requested submission: |
Interesting, it is really weird that it doesn't work inside of Checkbox that command, it looks good to me. Either way, thanks for fixing it. |
…ain (BugFix) (#2018) * Fix(docker/save-and-load): remove image before try to load it again Signed-off-by: Lincoln Wallace <lincoln.wallace@canonical.com> * fix: I/O redirection operators not working for docker save and load - fix: stop using I/O redirection During docker save command, the `ubuntu.tar` file saved was actually an empty file. After changing the save operation to use `-i` the test still failing. Then after changing the load operation to not use the redirection it worked. - feat: Prune image before load back Delete all image layers before trying to load Signed-off-by: Lincoln Wallace <lincoln.wallace@canonical.com> --------- Signed-off-by: Lincoln Wallace <lincoln.wallace@canonical.com>
…ain (BugFix) (#2018) * Fix(docker/save-and-load): remove image before try to load it again Signed-off-by: Lincoln Wallace <lincoln.wallace@canonical.com> * fix: I/O redirection operators not working for docker save and load - fix: stop using I/O redirection During docker save command, the `ubuntu.tar` file saved was actually an empty file. After changing the save operation to use `-i` the test still failing. Then after changing the load operation to not use the redirection it worked. - feat: Prune image before load back Delete all image layers before trying to load Signed-off-by: Lincoln Wallace <lincoln.wallace@canonical.com> --------- Signed-off-by: Lincoln Wallace <lincoln.wallace@canonical.com>
Description
The test has an inconsistency, it saves an image get from docker hub on a tar file and immediately tries to load it back, which doesn't make sense because this operation will be cached/ignored.
This adds a removal of the image before trying to load the tar file.
Documentation
Tests