linux 如何解决'无法创建NAT链DOCKER'导致无法重新启动?

oalqel3c  于 2023-03-17  发布在  Linux
关注(0)|答案(1)|浏览(231)

这是我的操作系统

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Docker版本

Docker version 20.10.5+dfsg1, build 55c4c88

对接器-组合

docker-compose version 1.25.3, build d4d1b42b

问题就在这里
我想按照https://docs.docker.com/engine/install/debian/说明在服务器上安装Docker和docker-compose
但是,我不能统计 Docker ,这里是日志

systemctl status docker.service

得到了

Mar 12 10:27:02 trigan4gb systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Mar 12 10:27:02 trigan4gb systemd[1]: Stopped Docker Application Container Engine.
Mar 12 10:27:02 trigan4gb systemd[1]: docker.service: Start request repeated too quickly.
Mar 12 10:27:02 trigan4gb systemd[1]: docker.service: Failed with result 'exit-code'.
Mar 12 10:27:02 trigan4gb systemd[1]: Failed to start Docker Application Container Engine.

运行dockerd
得到了

INFO[2023-03-12T10:32:11.180456435-04: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 v1.8.7 (nf_tables): Could not fetch rule set generation id: Invalid argument

我试过Reboot,但它不起作用

2lpgd968

2lpgd9681#

当我跑步时:一个月一个月一个月一个月一个月
那么reboot
又能用了

相关问题