fix lxc config if docker

This commit is contained in:
Thorsten Spille
2026-01-06 11:47:56 +00:00
parent 34b3938350
commit bdcc74535d

View File

@@ -154,6 +154,10 @@ pct create $LXC_NBR $TAGS $LXC_CORES $LXC_POOL --password $LXC_PWD -unprivileged
set -u set -u
sleep 2; sleep 2;
if [[ $SERVICE_TAGS == *"docker"* ]]; then
echo "lxc.apparmor.profile: unconfined" >> /etc/pve/lxc/${LXC_NBR}.conf
fi
# Check vlan configuration # Check vlan configuration
if [[ $LXC_VLAN != "NONE" ]];then VLAN=",tag=$LXC_VLAN"; else VLAN=""; fi if [[ $LXC_VLAN != "NONE" ]];then VLAN=",tag=$LXC_VLAN"; else VLAN=""; fi
# Reconfigure conatiner # Reconfigure conatiner