Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker squash support #52

Open
lifeofguenter opened this issue May 6, 2021 · 2 comments
Open

Docker squash support #52

lifeofguenter opened this issue May 6, 2021 · 2 comments

Comments

@lifeofguenter
Copy link
Contributor

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
Copy link

hypery2k commented Jul 3, 2023

You can us it like that:


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

@M8torr
Copy link

M8torr commented Jun 14, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants