mirror of
https://github.com/bashclub/zamba-lxc-toolbox
synced 2026-01-08 19:56:22 +00:00
fix lxc config if docker
This commit is contained in:
@@ -154,6 +154,10 @@ pct create $LXC_NBR $TAGS $LXC_CORES $LXC_POOL --password $LXC_PWD -unprivileged
|
||||
set -u
|
||||
sleep 2;
|
||||
|
||||
if [[ $SERVICE_TAGS == *"docker"* ]]; then
|
||||
echo "lxc.apparmor.profile: unconfined" >> /etc/pve/lxc/${LXC_NBR}.conf
|
||||
fi
|
||||
|
||||
# Check vlan configuration
|
||||
if [[ $LXC_VLAN != "NONE" ]];then VLAN=",tag=$LXC_VLAN"; else VLAN=""; fi
|
||||
# Reconfigure conatiner
|
||||
|
||||
Reference in New Issue
Block a user