In this tutorial you will build a Docker container image.[1]
The following section contains a complete Packer template that can be used to build an Ubuntu Docker image.
Create a file named docker-ubuntu.pkr.hcl
and add the following code:
1 | packer { |
Build
Run through the following Pack commands to build the image(s):
1 | Initialize your Packer configuration. |
Verify
List all the Docker images to confirm that Packer successfully built your Docker image.
1 | $ docker images |