##docker 启动时报错如下
root@DESKTOP-3TQ8K9B:~# systemctl start docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
##可以通过如下命令查看docker的启动日志
root@DESKTOP-3TQ8K9B:~# sudo dockerd --debug
##报错信息
failed to start daemon: Error initializing network controller: error obtaining controller instance: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain: (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.7 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1
(exit status 4))
##可执行如下命令解决:
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
docker启动报错 iptables问题
最新推荐文章于 2024-05-02 09:45:52 发布