apt update && apt install -y docker.io docker-compose-v2
usermod -aG docker $USER
newgrp docker
(2015/12/05) PVE 的 CT 安裝後無法啟動容器
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: open sysctl net.ipv4.ip_unprivileged_port_start file: reopen fd 8: permission denied
在 PVE 的 CT 設定檔中加上相容設定
nano /etc/pve/lxc/(CT ID).conf
加上以下內容
lxc.apparmor.profile: unconfined lxc.mount.entry: /dev/null sys/module/apparmor/parameters/enabled none bind 0 0 lxc.mount.entry: /proc/sys/net/ipv4/ip_unprivileged_port_start proc/sys/net/ipv4/ip_unprivileged_port_start none bind 0 0
Deleting the wiki page "Service:Docker" cannot be undone. Continue?