Hashicorp

Packer - tutorial

Install https://learn.hashicorp.com/tutorials/packer/get-started-install-cli I installed pre-compiled version from the official download page (just download a binary). cd /usr/local/src sudo curl https://releases.hashicorp.com/packer/1.7.6/packer_1.7.6_linux_amd64.zip -O sudo unzip packer_1.7.6_linux_amd64.zip sudo mv packer /usr/bin/ packer version Use Build a Docker image mkdir packer_tutorial cd packer_tutorial touch docker-ubuntu.pkr.hcl In the file docker-ubuntu.pkr.hcl, we define how to set up Pakcer environment and how to build artifacts (images/containers/VMs/etc.). docker-ubuntu.pkr.hcl: packer { required_plugins { docker = { version = ">= 0.