18 lines
No EOL
622 B
Text
18 lines
No EOL
622 B
Text
# Distribution configuration
|
|
lxc.include = /usr/share/lxc/config/common.conf
|
|
lxc.arch = x86_64
|
|
|
|
# Container specific configuration
|
|
lxc.rootfs.path = dir:/var/lib/lxc/{{container}}/rootfs
|
|
lxc.uts.name = {{container}}
|
|
|
|
# Network configuration
|
|
lxc.net.0.type = none
|
|
|
|
{%- for bind_dir in bind_dirs %}
|
|
lxc.mount.entry=/{{bind_dir}} {{bind_dir}} none bind 0 0
|
|
{%- endfor %}
|
|
|
|
{%- for overlay_dir in overlay_dirs %}
|
|
lxc.mount.entry=overlay {{overlay_dir}} overlay lowerdir=/{{overlay_dir}},upperdir=/var/lib/lxc/{{container}}/upperdirs/{{overlay_dir}},workdir=/var/lib/lxc/{{container}}/workdirs/{{overlay_dir}} 0 0
|
|
{%- endfor %} |