packer-plugin-docker icon indicating copy to clipboard operation
packer-plugin-docker copied to clipboard

Docker squash support

Open lifeofguenter opened this issue 4 years ago • 2 comments

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.

lifeofguenter avatar May 06 '21 08:05 lifeofguenter

You can us it like that:


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

hypery2k avatar Jul 03 '23 04:07 hypery2k

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?

M8torr avatar Jun 14 '24 19:06 M8torr