Failed to start docker-daemon: Firewalld: docker zone already exists

Viewed 2315

I have the following after running firewall-cmd --get-active-zones

public
  interfaces: virbr0 docker0 lxcbr0 wlan0
trusted
  sources: 172.17.0.0/16 53.0.0.0/8

These are insights I got from failed to start daemon: Error initializing network controller: Error creating default "bridge" network

The problem is, sudo dockerd fails with error messages, among which there is

failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to program NAT chain: ZONE_CONFLICT: 'docker0' already bound to a zone

How to manipulate the zone so that I can start the docker daemon?

EDIT: This solution worked for me:

sudo firewall-cmd --permanent --new-zone=docker 
sudo firewall-cmd --reload
sudo firewall-cmd --permanent --zone=docker --add-interface=docker0
0 Answers
Related