Instead of cloning the image, link to the rootfs. Provide more individual files.
This commit is contained in:
parent
b920bdf52b
commit
fed5f71357
3 changed files with 20 additions and 7 deletions
|
@ -9,3 +9,5 @@ Port=10{{ "%03d" | format(item|int + 100) }}:80
|
|||
[Files]
|
||||
Volatile=overlay
|
||||
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
|
||||
|
|
4
roles/educontainer/templates/hosts.j2
Normal file
4
roles/educontainer/templates/hosts.j2
Normal file
|
@ -0,0 +1,4 @@
|
|||
127.0.0.1 localhost {{ contname }}{{ "%02d" | format(item|int) }}
|
||||
::1 localhost {{ contname }}{{ "%02d" | format(item|int) }} ip6-localhost ip6-loopback
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
Loading…
Add table
Add a link
Reference in a new issue