Switch to persistent overlays.

With tmpfs the containers' disk space is too limited.  Better keep
changes on the disk.
This commit is contained in:
Andreas B. Mundt 2021-11-11 23:10:48 +01:00 committed by Andreas B. Mundt
parent fed5f71357
commit 7bbfd817f8
2 changed files with 27 additions and 11 deletions

View file

@ -5,9 +5,11 @@ ResolvConf=copy-host
[Network]
Port=10{{ "%03d" | format(item|int) }}:22
Port=10{{ "%03d" | format(item|int + 100) }}:80
Port=10{{ "%03d" | format(item|int + 200) }}:443
[Files]
Volatile=overlay
ReadOnly=yes
Overlay=+/:/var/lib/machines/{{ contname }}{{ "%02d" | format(item|int) }}-delta:/
PrivateUsersChown=false
BindReadOnly=/var/lib/machines/{{ contname }}{{ "%02d" | format(item|int) }}.hostname:/etc/hostname
BindReadOnly=/var/lib/machines/{{ contname }}{{ "%02d" | format(item|int) }}.hosts:/etc/hosts