systemctl docker start fails after openSUSE Leap upgrade
I have some docker container hosting server operated by openSUSE Leap 15.1. After upgrading of the machine to 15.2 via official step, docker daemon failed to start.
When you encountered this situation, journalctl -xe
shows the messages like:
Feb 13 12:13:28 localhost firewalld[1134]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -F DOCKER-ISOLATION' failed: iptables: No chain/target/match>
Feb 13 12:13:28 localhost firewalld[1134]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -t filter -X DOCKER-ISOLATION' failed: iptables: No chain/target/match>
Feb 13 12:13:28 localhost firewalld[1134]: WARNING: COMMAND_FAILED: '/usr/sbin/iptables -w2 -D FORWARD -i docker0 -o docker0 -j DROP' failed: iptables: Bad rule (>
Feb 13 12:13:28 localhost firewalld[1134]: ERROR: INVALID_ZONE: docker
Feb 13 12:13:29 localhost dockerd[9672]: failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to program>
Feb 13 12:13:29 localhost systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Feb 13 12:13:29 localhost systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
According to some another post, we can ignore those WARNING messages, but you definitely have to care about an ERROR. I just newly added firewalld zone with command:
sudo firewall-cmd --new-zone docker --permanent
sudo firewall-cmd --reload
and docker daemon will starts successful.
sudo systemctl restart docker