Skip to content

Latest commit

 

History

History
 
 

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

The LXC plugin allows building containers for lxc. The plugin contains a single builder lxc, which starts an LXC container, runs provisioners within this container, then exports the container as a tar.gz of the root file system.

Installation

To install this plugin, copy and paste this code into your Packer configuration, then run packer init.

packer {
  required_plugins {
    lxc = {
      source  = "github.com/hashicorp/lxc"
      version = "~> 1"
    }
  }
}

Alternatively, you can use packer plugins install to manage installation of this plugin.

$ packer plugins install github.com/hashicorp/lxc

Components

Builders

  • lxc - The LXC builder builds containers for LXC by starting a container, provisioning it, and exporting it as a tar.gz archive of the root file system.