Switch to persistent overlays.
With tmpfs the containers' disk space is too limited. Better keep changes on the disk.
This commit is contained in:
parent
fed5f71357
commit
7bbfd817f8
2 changed files with 27 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue