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:
docker version: Docker version 18.09.1, build 4c52b90
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.
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 usingdocker 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: