创建取消勾选无特权容器LXC
PVE Host内执行
cat >> /etc/pve/lxc/[LXC_ID].conf << EOL
lxc.apparmor.profile: unconfined
EOL
更新
apt update
apt upgrade -y
安装Docker
apt install curl -y
curl -sSL https://get.daocloud.io/docker | sh
安装portainer
docker volume create portainer_data
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
设置docker自启
systemctl enable docker
此处评论已关闭