Docker can be used inside of LXD containers, allowing for some specific applications and services to be installed through Docker just as one would on a physical server or virtual machine.
This can be useful to have LXD provide full system containers or virtual machines for a variety of users or projects, some using Docker and some not.
COMMANDS:
- lxc storage create docker btrfs
- lxc storage volume create docker demo
- lxc launch images:ubuntu/20.04 demo
- lxc config device add demo docker disk pool=docker source=demo path=/var/lib/docker
- lxc config set demo security.nesting=true security.syscalls.intercept.setxattr=true security.syscalls.intercept.mknod=true
- lxc restart demo
RESOURCES:
- Docker install guide: [ Ссылка ]
- LXD instance documentation: [ Ссылка ]
- LXD storage documentation: [ Ссылка ]
TIMESTAMPS:
0:00 Introduction
2:46 Creating the LXD container
6:15 Installing Docker
7:18 Running Hello World
7:35 Running an Ubuntu Docker container
8:10 Running Nextcloud
9:50 Conclusionhttps://linuxcontainers.org/lxd/docs/master/storage
![](https://i.ytimg.com/vi/_fCSSEyiGro/maxresdefault.jpg)