Packer
LXD
@hashicorp
The LXD plugin can be used with HashiCorp Packer to create OCI images with LXD.
- Community
Updated 2 years ago
- GitHub(opens in new tab)
LXD
The LXD plugin allows building containers for LXD, by starting an LXD container, running provisioners within this container, then saveing the container as an LXD image.
Installation
To install this plugin, copy and paste this code into your Packer configuration, then run packer init
.
packer {
required_plugins {
lxd = {
source = "github.com/hashicorp/lxd"
version = "~> 1"
}
}
}
Alternatively, you can use packer plugins install
to manage installation of this plugin.
$ packer plugins install github.com/hashicorp/lxd
Components
Builders
- lxd - The LXD builder builds containers with LXD by starting a container, provisioning it, and exporting it as a tar.gz archive of the root file system.