Docker-in-LXC: security_opt in composes; revert LXC apparmor override; doc
This commit is contained in:
parent
69db7d5426
commit
4e72d46bf9
3 changed files with 54 additions and 57 deletions
|
|
@ -124,11 +124,8 @@ pct create "$LXC_ID" "$TEMPLATE" \
|
|||
--unprivileged 0 \
|
||||
--onboot 1 \
|
||||
--tags "${POOL}" \
|
||||
${POOL_OPT} &>/dev/null
|
||||
# Docker-in-LXC: run AppArmor-unconfined so containers can start
|
||||
grep -q '^lxc.apparmor.profile: unconfined' "/etc/pve/lxc/${LXC_ID}.conf" 2>/dev/null \
|
||||
|| echo "lxc.apparmor.profile: unconfined" >> "/etc/pve/lxc/${LXC_ID}.conf"
|
||||
pct start "$LXC_ID" &>/dev/null
|
||||
${POOL_OPT} \
|
||||
--start 1 &>/dev/null
|
||||
sleep 5
|
||||
msg_ok "LXC ${LXC_ID} created"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue