Skip to main content
100%

A Packer template for building a Docker container host on an AWS EC2 instance.

✓ Published0🌍 Public
JJoelBCarter
Last edited Jun 14, 2016
Created on Jun 14, 2016

This example shows a Packer template that automates the creation of an Amazon EC2 instance preconfigured as a Docker container host. The code defines an Amazon EBS builder using the `amazon-ebs` type, specifying an Ubuntu AMI and an `m3.xlarge` instance type. Provisioners run shell commands to install Docker Engine, add the `ubuntu` user to the `docker` group, and configure DNS via `DOCKER_OPTS`. The template also includes a `shell-local` provisioner to wait for a reboot, and uses variables for AWS credentials. The rendering approach is code-as-infrastructure, with no visual data involved.

AI-generated description

Similar vizzes