loading...

[Fedora 32] How to solve docker internal network issue

ozorest profile image Thiago Ozores 🇧🇷 ・1 min read

Recently I upgraded to Fedora 32 with a fresh install and started to face an issue using docker-compose and docker in general, containers weren't able to talk each other.

After some googling I found that default backend for firewalld was changed from iptables to nftables.

I tried to do the proposed fixes for Docker described in the link above, but without success, so the way to solve the issue for me was put back iptables as firewalld backend.

With those commands below, I was able to solve the issue.

sudo sed -i 's/FirewallBackend=nftables/FirewallBackend=iptables/g' /etc/firewalld/firewalld.conf

sudo systemctl restart firewalld docker

That's all folks, thanks in advance and stay in tune.

Discussion

pic
Editor guide
 

may I offer an alternative?

firewall-cmd --permanent --zone=trusted --add-interface=docker0
firewall-cmd --reload
 

Opa, com certeza, eu tentei essa solução de mudar a zone do docker0, sem sucesso, mas não lembro se eu cheguei a mudar para a trusted.
Muito obrigado por compartilhar.

 

tranquilo... aqui pra mim funcionou instantaneamente :)

 

I created my account just to say:
Thanks so much!!!

Works for me :)

 

I'm very glad to help and to know that you created the account just to say thanks

 

Cara, valeu demais!

 

De nada, fico feliz por ter ajudado

 

Muito obrigado! Resolveu o problema!!!

 

Obrigado pela dica! Ela foi a única que funcionou em dois dias parado com essa issue.

 

De nada, fico feliz por ter ajudado

 

Thank you very much for this solution!!

 

I'm glad to help