Packer must first be installed on the machine you want to run it on.
Build an Image
With Packer installed, let's just dive right into it and build our first image. Packer can create images for many platforms with anything pre-installed. In this example, you will build a Docker image with Packer.
Packer fully supports automated provisioning in order to install software onto machines prior to turning them into images.
Packer templates can be parameterized using variables.
So far we've shown how Packer can automatically build an image and provision it. This on its own is already quite powerful. But Packer can do better than that. Packer can create multiple images for multiple platforms in parallel, all configured from a single template.
Packer also has the ability to modify the artifact of a build once the instance has been shut down