• HashiCorp Developer

  • HashiCorp Cloud Platform
  • Terraform
  • Packer
  • Consul
  • Vault
  • Boundary
  • Nomad
  • Waypoint
  • Vagrant
Packer
  • Install
  • Tutorials
  • Documentation
  • Guides
  • Plugins
  • Try Cloud(opens in new tab)
  • Sign up
Packer Home

Tutorials

Skip to main contentTutorials

Get Started

  • AWS
  • Docker
  • HCP Packer

Fundamentals

  • Configuration Language
  • HCP Packer

Production

  • Use Cases

  • Resources

  • Tutorial Library
  • Community Forum
    (opens in new tab)
  • Support
    (opens in new tab)
  • GitHub
    (opens in new tab)
  1. Developer
  2. Packer
  3. Tutorials
  4. Docker

Getting Started with Docker

HashiCorp Packer automates the creation of any type of machine image, including Docker images. You'll build a Docker image on your local machine without using any paid cloud resources.

Start
6 tutorials
  1.  
    5min
    Install Packer
    Packer must first be installed on the machine you want to run it on.
    • Packer
  2.  
    7min
    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
  3.  
    6min
    Provision
    Packer fully supports automated provisioning in order to install software onto machines prior to turning them into images.
    • Packer
  4.  
    6min
    Variables
    Packer templates can be parameterized using variables.
    • Packer
  5.  
    5min
    Parallel Builds
    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
  6.  
    5min
    Post-Processors
    Packer also has the ability to modify the artifact of a build once the instance has been shut down
    • Packer
Give Feedback(opens in new tab)
  • Certifications
  • System Status
  • Terms of Use
  • Security
  • Privacy
  • Trademark Policy
  • Trade Controls
  • Give Feedback(opens in new tab)