Packer
LXC
@hashicorp
The LXC plugin can be used with HashiCorp Packer to create OCI images with LXC.
- Community
Updated 2 years ago
- GitHub(opens in new tab)
LXC
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.