#Is it possible to save multiple images to a single tarball?

1 messages · Page 1 of 1 (latest)

gloomy bough
#

Esentially, I would like to do the equivalent of

docker save img1 img2 img3 | gzip > docker_images.tar.gz

after building each container/image with a Dagger Function call.
I've been looking around the docs and only finding the as_tarball() method for a Container (https://dagger-io.readthedocs.io/en/sdk-python-v0.11.8/client.html#dagger.Container.as_tarball), but nothing that would allow me to feed a list of containers into a tarball from which I could then easily load all the Docker images into a Docker Engine.

Do you have any idea how this could be done in a simple and straightforward way?

thin coral