Skip to content
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: load image without specifying the name #417

Closed
AssafKatz3 opened this issue Jul 6, 2022 · 2 comments
Closed

docker_image: load image without specifying the name #417

AssafKatz3 opened this issue Jul 6, 2022 · 2 comments
Labels
docker-plain plain Docker (no swarm, no compose, no stack)

Comments

@AssafKatz3
Copy link

SUMMARY

Currently docker_images module does not allow to load images from a TAR file without specifying the name of the image, which besides is an issue by itself (sometimes You don't know image name upfront) but most importantly does not allow to load multiple images from one tar file

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

docker_image module

ADDITIONAL INFORMATION

"Name" parameter should not be required if load_path is specified (and the name itself should be determined by ansible/docker) or "Name" can persist required but should have some value like "as original" or "as_load"

Use cases:

  1. Loading a few images saved in one tar file
  2. Loading images for which You don't know the name upfront (for example if You want to get the latest version not knowing exactly what the version is or simply development team is saving images to file and their name are hashed or so)
- name: Load images from the archive 
  docker_image:
    name: [some_new_parameter]
    load_path: my_images.tar

This issue is still existing (at least at documentation) as was three years ago.

@felixfontein
Copy link
Collaborator

That's how the docker_image module works, and it won't change. If you want to load multiple images from a tar file, or don't know the image name, use the docker_image_load module.

@felixfontein felixfontein added the docker-plain plain Docker (no swarm, no compose, no stack) label Jul 6, 2022
@felixfontein
Copy link
Collaborator

(See also #86.)

@AssafKatz3 AssafKatz3 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker-plain plain Docker (no swarm, no compose, no stack)
Projects
None yet
Development

No branches or pull requests

2 participants