blob: 079cc1c1f13081d38bdd1039579c02d0a5e09c3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
[[Systemd Machined]]
= Run ephemeral container =
{{{sh
systemd-nspawn --ephemeral --directory /var/lib/templates/${name}
}}}
== Debian ==
=== Create new debian container ===
{{{
debootstrap --include=systemd-container bullseye /var/lib/machines/<machine-name>
systemd-nspawn -M <machine-name> apt install systemd-container
}}}
https://puppet.com/docs/puppet/7/install_puppet.html#install_puppet
== Copy existing container ==
{{{
systemd-nspawn --template=EXISTING_OS_TREE -D /var/lib/machines/NEW_MACHINE
}}}
== Setting up container ==
== Food for thought ==
overlayfs doesn't work with containers, due to something with UID/GID shift
btrfs subvolumes should be used for templates, since those enable COW.
|