hashicorp / packer-plugin-docker

Packer plugin for Docker Builder
https://www.packer.io/docs/builders/docker
Mozilla Public License 2.0
30 stars 26 forks source link

Post-Processor: Delete docker image in local build machine after pushing to remote registry #6

Open ghost opened 3 years ago

ghost commented 3 years ago

This issue was originally opened by @karthik101 as hashicorp/packer#5361. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


I do not want docker images piling up in my jenkins-slave. Is there any way to not commit images to local build machine and able to push docker image to remote registry?

I tried with "export" in builder and "docker-import" in post-processor but its still keeps a copy.

Thanks, Karthik