hashicorp / packer-plugin-docker

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

Docker squash support #52

Open lifeofguenter opened 3 years ago

lifeofguenter commented 3 years ago

Seeing that docker build --squash is a experimental feature included in vanilla docker, it would be great if packer could support that option as well, instead of having to currently rely on external tools.

hypery2k commented 1 year ago

You can us it like that:


source "docker" "autogenerated_1" {
  changes = ["VOLUME /data", "WORKDIR /data", "ENTRYPOINT /bin/bash"]
  commit  = true
  squash  = true
...
}
M8torr commented 1 month ago

You can us it like that:


source "docker" "autogenerated_1" {
  changes = ["VOLUME /data", "WORKDIR /data", "ENTRYPOINT /bin/bash"]
  commit  = true
  squash  = true
...
}

This doesn't seem to work in the latest docker plugin. Was this ever implemented?