hashicorp / packer-plugin-docker

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

Alt executable support #188

Closed lbajolet-hashicorp closed 3 weeks ago

lbajolet-hashicorp commented 3 weeks ago

When using the builder to create a new container image, we used to default on using the docker command for everything.

While this is simple, this can limit what users try to do with the plugin, typically if they need to run their builds on a specific version of Docker which they built from scratch and won't install it, or if they want to build with a Docker-compatible alternative like podman.

To circumvent this limitation, we add a new docker_path option to the builder, so they can use this to use alternative docker binaries for orchestrating their builds with.