-
Notifications
You must be signed in to change notification settings - Fork 110
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
docker_image - "docker_image Detected no loaded images. Archive potentially corrupt?" when loading tar with ID only #86
Comments
There are two problems:
|
Thanks Felix for your feedback. we were using "docker_image" to load multiple image by ID since over a year. And i just realized about point number 2 thanks to your comment. I guess we got lucky to be able to load a file containing multiple image until now. Does it mean we could ask for an improvement or new module to handle this case? |
@n1kofr yes, until recently the module didn't check the output and simply assumed that the load worked. Which wasn't really good either ;-) About supporting loading images by ID, that's something that can be added (I can work on that if nobody else does). About supporting loading multiple images, I think that should be part of another (i.e. new) module. The I guess a new module could be called |
(For now, |
Thanks for the update and I will follow your advice in my current playbook for the load of multiple image. FYI, our goal to have multiple image in the same file is to ensure we save space and having all the common layers only once in the Tgz. Looking forward to have a new module for that :) |
SUMMARY
Since Ansible 2.9.17, we cannot load docker image exported as a TAR and containing only ID.
It seems related to the change done by ansible/ansible#73067
ISSUE TYPE
COMPONENT NAME
Module: docker_image
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Red Hat Enterprise Linux release 8.3 (Ootpa)
STEPS TO REPRODUCE
1 - export a docker image from docker using ID and compress as TAR GZIP
docker save <IMAGE_ID1> <IMAGE_ID2> | gzip > /tmp/docker_images.tar.gz
2 - import the TAR GZIP file using the ansible task
EXPECTED RESULTS
We expect to have all images loaded into docker and the task succeed (as it was working with Ansible 2.9.16).
ACTUAL RESULTS
Images are loaded into docker but the task fails with the following error (as there is now a check of the output performed by the task):
From the source code, it seems the check is done on "Loaded image:" but when loading by ID, the output of the docker command returns: "Loaded image ID:"
The text was updated successfully, but these errors were encountered: