mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Add docker_image_export module (#774)
* Add docker_image_export module. * Add basic tests. * Add more seealsos.
This commit is contained in:
@@ -21,7 +21,9 @@
|
||||
all_images: "{{ image_names + (images.results | map(attribute='image') | map(attribute='Id') | list) }}"
|
||||
|
||||
- name: Create archives
|
||||
command: docker save {{ item.images | join(' ') }} -o {{ remote_tmp_dir }}/{{ item.file }}
|
||||
docker_image_export:
|
||||
names: "{{ item.images }}"
|
||||
path: "{{ remote_tmp_dir }}/{{ item.file }}"
|
||||
loop:
|
||||
- file: archive-1.tar
|
||||
images: "{{ image_names }}"
|
||||
|
||||
Reference in New Issue
Block a user