ZFS pool in to lxc
apt install zfsutils-linux
modprobe zfs
echo zfs >> /etc/modules
lxc storage create zfs_pool zfs source=/dev/bcache0
apt install zfsutils-linux
modprobe zfs
echo zfs >> /etc/modules
lxc storage create zfs_pool zfs source=/dev/bcache0
lxc network set lxdbr0 ipv4.routes 94.130.21.165/32
lxc exec c1 -- ip -4 addr add dev eth0 94.130.21.165/32
cat <<EOF > /etc/network/interfaces.d/50-cloud-init.cfg
auto eth0
iface eth0 inet static
address 94.130.21.165
netmask 255.255.255.0
gateway 10.10.10.1
pre-up ip -4 link set dev eth0 up
pre-up ip -4 route add dev eth0 10.10.10.1/32
EOF
lxc launch ubuntu:18.04 docker -c security.nesting=true
Официальная инструкция: https://stgraber.org/2016/04/13/lxd-2-0-docker-in-lxd-712/