Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem that docker cannot restart

Shulou Source: shulou.com Published: 2022-05-31 20:21:40 09月22日 Update

This article introduces the knowledge of "how to solve the problem that docker cannot restart". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

OS:Debian Gnu/Linux 10.7

Kernel:Debian 5.9.6-1~bpo10+1 (2020-11-19) x86 hours 64 GNU/Linux

Firewall:nftables v0.9.0 (Fearless Fosdick)

Docker:Docker version 18.09.1, build 4c52b90

Problem description: this machine uses nftables as the default firewall component. After installing docker using apt-get install docker.io, docker is abnormal after executing the command "systemctl restart docker". Check the detailed restart process by using the command "jjournalctl-u docker.service" and find the following error:

January 08 07:43:04 localhost dockerd [18260]: time= "2021-01-08T07:43:04.938383895+08:00" level=info msg= "pickfirstBalancer: HandleSubConnStateChange: 0xc000884200, CONNECTING" module=grpc

07:43:05 localhost dockerd [18260]: Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create FILTER chain DOCKER: iptables failed: iptables-t filter-N DOCKER: iptables v1.8.2 (nf_tables): Chain already exists

January 08 07:43:05 localhost dockerd [18260]: (exit status 1)

Problem solving:

1 、 systemctl stop docker

2 、 ip link set docker0 down

3 、 brctl delbr docker0

4 、 systemctl restart nftables.server

5 、 systemctl start docker

This is the end of the content of "how to solve the problem that docker cannot restart". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Questions content commands more knowledge process practicality achievement next dilemma reality situation article method case component editing website industry error Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Docker Huawei Microsoft Redmi