uname -a
Linux freshncp 6.1.75 #1 SMP Sun Aug 18 02:12:55 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
之前的 5.10.110 是正常启动dockerd服务 的
uname -a
Linux freshncp 6.1.75 #1 SMP Sun Aug 18 02:12:55 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
之前的 5.10.110 是正常启动dockerd服务 的
发现 dockerd启动失败,原因是iptables失败了,是否是内核未添加 nftables 的支持?
INFO[2024-08-18T11:25:10.884899381+08:00] Starting up
INFO[2024-08-18T11:25:10.885740562+08:00] detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: /run/systemd/resolve/resolv.conf
INFO[2024-08-18T11:25:10.900679110+08:00] [graphdriver] using prior storage driver: overlay2
INFO[2024-08-18T11:25:10.908166906+08:00] Loading containers: start.
INFO[2024-08-18T11:25:10.955936893+08:00] unable to detect if iptables supports xlock: 'iptables --wait -L -n': `iptables: Failed to initialize nft: Protocol not supported` error="exit status 1"
INFO[2024-08-18T11:25:11.035561219+08:00] stopping event stream following graceful shutdown error="<nil>" module=libcontainerd namespace=moby
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables: Failed to initialize nft: Protocol not supported
(exit status 1)
INFO[2024-08-18T11:25:11.036588487+08:00] stopping event stream following graceful shutdown error="context canceled" module=libcontainerd namespace=plugins.moby
从这里编译了内核: https://github.com/coolpi-george/coolpi-kernel
./build-kernel.sh
sudo cp -r ./out/* /boot/firmware/ # 旧目录已经备份