例如CT100是Debian10 CT机,为了让他支持Docker
PVE母鸡ssh敲入
nano /etc/pve/lxc/100.conf
添加下面三行
lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:
#保存
ctrl+o
#重启CT100 机
#之后CT机ssh一键添加docker
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
=================================
PVE合并分区方法
ssh连接母机 (PVE-Console)
#删除local-lvm,
lvremove pve/data
#增加分区空间
lvextend -l +100%FREE -f pve/root
# 执行生效
resize2fs /dev/mapper/pve-root
#重启
reboot
然后到WEB UI里,删掉local-lvm
没有评论:
发表评论