Skip to content

Instantly share code, notes, and snippets.

@reytech-dev
Last active March 20, 2024 10:19
Show Gist options
  • Save reytech-dev/1cbbb158df374018be454537de32a428 to your computer and use it in GitHub Desktop.
Save reytech-dev/1cbbb158df374018be454537de32a428 to your computer and use it in GitHub Desktop.
ZONE_CONFLICT: 'docker0' already bound to a zone
  1. Check if docker zone exists in firewall-cmd
$ firewall-cmd --get-active-zones
  1. If "docker" zone is available, change interface to docker0 (not persisted)
$ sudo firewall-cmd --zone=docker --change-interface=docker0
  1. If "docker" zone is available, change interface to docker0 (persisted, thanks rbjorklin)
$ sudo firewall-cmd --permanent --zone=docker --change-interface=docker0
$ sudo systemctl restart firewalld
@oflatley
Copy link

actual solution for me on ubuntu 20.04 + docker-ce 20.10,21

@luoxun-xl
Copy link

Thanks! Helpful solution on CentOS 8.

@PrettiestFairy
Copy link

effective solution 👌

@Patroklos99
Copy link

this worked on faulty Opensuse TW where all the other attemps on the web diring work

@ZanFly
Copy link

ZanFly commented Dec 30, 2023

Thank you!

@oma256
Copy link

oma256 commented Mar 13, 2024

Thank you)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment