spotify / docker-maven-plugin

INACTIVE: A maven plugin for Docker
Apache License 2.0
2.67k stars 575 forks source link

Saving image to archive saves all images with same name #420

Closed Smiche closed 5 years ago

Smiche commented 5 years ago

Description

Running docker:build goal and using -DsaveImageToTarArchive=image.tar.gz results in an archive that includes all of the images which have the same name as the image being built. So all previous images built the same way before are included in the archive.

How to reproduce

Run docker:build a few times and then use -DsaveImageToTarArchive=archivename. When using docker load -i archivename several images will be loaded by docker.

Wouldn't a better result be to include only the latest image from the current build process? We're using CI to build the image and the size grows after every build. Making it harder to deploy. One work around we're using right now is to delete all previous images before every build.

Software:

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.