当前位置:   article > 正文

docker启动报错 iptables问题_failed to start daemon: error initializing network

failed to start daemon: error initializing network controller: error obtaini
##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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号