Skip to content

Instantly share code, notes, and snippets.

@reytech-dev
Last active March 20, 2024 10:19
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • 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
@elektronik2k5
Copy link

Thank you! This fixed docker after upgrading Fedora 33 to Fedora 34.

@Stephen2
Copy link

LEGEND!!

@chriskite
Copy link

Also fixed Fedora 33 -> 34 upgrade here.

@ahaxu
Copy link

ahaxu commented Jun 3, 2021

nice, thank you so much

@rbjorklin
Copy link

You probably want the change persisted so try:

$ sudo firewall-cmd --permanent --zone=docker --change-interface=docker0
$ sudo systemctl restart firewalld

@rstrawsb
Copy link

rstrawsb commented Aug 1, 2021

Thanks for posting this fix

@ebr
Copy link

ebr commented Sep 30, 2021

Thank you, this was helpful

@richardallred
Copy link

Thanks!

@chang-ngeno
Copy link

Saved me big time. RHEL 7.
to see complete errors i had to do this to see the actual error.
journalctl -xe -l

@siddjellali
Copy link

awesome !!!

@andre161292
Copy link

You saved my day!

@ivos
Copy link

ivos commented Aug 16, 2022

Thank you!

@oflatley
Copy link

thanks

@astovringros
Copy link

Still life saver this guide. Thanks.

@iulianwebdev
Copy link

Good spot! Thanks!

@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