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.
Create multiple images for multiple platforms in parallel, from one Packer
template, by creating a source. Build Ubuntu and Ubuntu Focal images for Docker.
Packer also has the ability to modify the artifact of a build once the
instance has been shut down