LXD

LXD is a next generation system container manager. It offers a user experience similar to virtual machines but using Linux containers instead.

Install and setup
Install package. Add uid and gid map into files и : root:100000:65536 lxd:100000:65536 Start and enable lxd service. Run initial setup. Add user to lxd group.
 * 1) apt-get install lxd
 * 1) systemctl enable --now lxd
 * 1) lxd init
 * 1) usermod username --append --groups lxd

Launch
Available ALT images on images.linuxcontainers.org $ lxc image list images:alt Approximate output:

Images available for the following arches:
 * amd64
 * arm64
 * i386
 * ppc64el

Launch container. $ lxc launch images:alt/p9 first Check it created. $ lxc ls Get into it. $ lxc exec first bash Stop it. $ lxc stop first And delete. $ lxc rm first

Build of images
LXD images buildings via.
 * 1) apt-get install distrobuilder
 * 2) distrobuilder build-lxd /usr/share/distrobuilder/examples/alt

Import image to lxd. $ lxc image import lxd.tar.xz rootfs.squashfs --alias myimage