Install LXD on Ubuntu
sudo apt install lxd-installer
LIST ALL LXD IMAGES ON A HOST
lxc image list
CREATE A CONTAINER FROM AN IMAGE
lxc launch images:{distro}/{version}/{arch} {container-name-here}
View a list of IMAGES
lxc image list
lxc delete {fingerprint}
CONTAINER
start
lxc start {ct name}
restart
lxc restart {ct name}
stop
lxc stop {ct name}
delete
lxc delete {ct name}
CREATE A CUSTOM IMAGE FROM A CONTAINER
lxc stop {ct name}
lxc publish {ct name} –alias {alias name} description=”{ct description}”
CREATE A CONTAINER USING AN IMAGE ALIAS
lxc launch {alias name} {ct name}
SNAPSHOT AN IMAGE
lxc snapshot {alias name}
INSPECT AN IMAGE
lxc image info {image name}
EXPORT THE IMAGE
lxc image export {image name} {path to store}
IMPORT THE IMAGE ON A DIFFERENT SERVER
lxc image import {image file name} –alias={image name}