Running Docker inside of a LXD container

0 Views· 12/25/24
admin
admin
Subscribers
0

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: https://docs.docker.com/engine/install/ubuntu/
- LXD instance documentation: https://documentation.ubuntu.c....om/lxd/en/latest/ins
- LXD storage documentation: https://documentation.ubuntu.c....om/lxd/en/latest/exp

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/lx....d/docs/master/storag

Show more

 0 Comments sort   Sort By