FAQ
nerdctl: command not found
The containerd environment is not correctly installed or /usr/local/bin is not in PATH.
Fix:
export PATH="/usr/local/bin:$PATH"
echo 'export PATH="/usr/local/bin:$PATH"' >> /etc/profile
source /etc/profile2
3
If still not found, re-run the installation script:
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/containerd/main/containerdinstall.sh)containerd service not running
systemctl status containerd
systemctl restart containerd2
View logs:
journalctl -u containerd -fContainer cannot access external network (IPv4)
Check if iptables NAT rules exist:
iptables -t nat -L POSTROUTING -n -v | grep 172.20If not present, add manually:
iptables -t nat -A POSTROUTING -s 172.20.0.0/16 ! -d 172.20.0.0/16 -j MASQUERADE
iptables -A FORWARD -s 172.20.0.0/16 -j ACCEPT
iptables -A FORWARD -d 172.20.0.0/16 -j ACCEPT2
3
Container IPv6 not working
- Confirm the host has a public IPv6 address
- Check if the containerd-ipv6 CNI network exists:
cat /etc/cni/net.d/20-containerd-ipv6.conflist- Check if the ndpresponder container is running:
nerdctl ps | grep ndpresponderImage pull failed
The script includes built-in CDN detection. You can also manually test CDN availability:
curl -4 -sL -k "https://cdn0.spiritlhl.top/https://raw.githubusercontent.com/spiritLHLS/ecs/main/back/test" --max-time 6How to completely reset the containerd environment
Uninstall, then reinstall:
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/containerd/main/containerduninstall.sh)
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/containerd/main/containerdinstall.sh)2
lxcfs related issues
If lxcfs is not installed on the host, containers will see the host's CPU/memory view. Install lxcfs:
apt-get install -y lxcfs # Debian/Ubuntu
yum install -y lxcfs # CentOS/RHEL2
Disk limit not working
Disk limits require xfs or btrfs snapshotter support. The default overlay snapshotter does not support container-level disk limits.
For disk limits, refer to the docker or incus solution documentation.
No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
export WITHOUTCDN=TRUEYou can also apply it to a single command only:
WITHOUTCDN=TRUEWhen enabled, scripts will no longer try CDN acceleration URLs during execution.
