305-300 · Question #82
What is the purpose of the packer inspect subcommand?
The correct answer is E. Display an overview of the configuration contained in a Packer template. The purpose of the packer inspect subcommand is to display an overview of the configuration contained in a Packer template. A Packer template is a file that defines the various components a Packer build requires, such as variables, sources, provisioners, and post-processors…
Question
Options
- ARetrieve files from an existing Packer image.
- BExecute commands within a running instance of a Packer image.
- CList the artifacts created during the build process of a Packer image.
- DShow usage statistics of a Packer image.
- EDisplay an overview of the configuration contained in a Packer template.
How the community answered
(41 responses)- A5% (2)
- B2% (1)
- C15% (6)
- D2% (1)
- E76% (31)
Explanation
The purpose of the packer inspect subcommand is to display an overview of the configuration contained in a Packer template. A Packer template is a file that defines the various components a Packer build requires, such as variables, sources, provisioners, and post-processors. The packer inspect subcommand can help you quickly learn about a template without having to dive into the HCL (HashiCorp Configuration Language) itself. The subcommand will tell you things like what variables a template accepts, the sources it defines, the provisioners it defines and the order they'll run, and more.
Topics
Community Discussion
No community discussion yet for this question.