DEV Community

Thiago (Zozô) Ozores
Thiago (Zozô) Ozores

Posted on

[Fedora 32] How to solve docker internal network issue

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
Enter fullscreen mode Exit fullscreen mode

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

Top comments (14)

Collapse
 
dvfranco profile image
dv-franco • Edited

may I offer an alternative?

firewall-cmd --permanent --zone=trusted --add-interface=docker0
firewall-cmd --reload
Collapse
 
zozores profile image
Thiago (Zozô) Ozores

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.

Collapse
 
dvfranco profile image
dv-franco • Edited

tranquilo... aqui pra mim funcionou instantaneamente :)

Collapse
 
benitocas88 profile image
Ebenezer Pool Castillo

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

Works for me :)

Collapse
 
zozores profile image
Thiago (Zozô) Ozores

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

Collapse
 
vk26 profile image
Dmitry

Thank you very much! You save my work day! I spent few hours before I met your post.

Collapse
 
fuhrmann profile image
Ricardo Fuhrmann

Muito obrigado! Resolveu o problema!!!

Collapse
 
felubra profile image
Felipe Lube de Bragança

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

Collapse
 
zozores profile image
Thiago (Zozô) Ozores

De nada, fico feliz por ter ajudado

Collapse
 
dotmendes profile image
Júnior Mendes

Cara, valeu demais!

Collapse
 
zozores profile image
Thiago (Zozô) Ozores

De nada, fico feliz por ter ajudado

Collapse
 
coleplx profile image
coleplx

Valeu! :D

Collapse
 
shef-er profile image
Ernest Shefer

Thank you very much for this solution!!

Collapse
 
zozores profile image
Thiago (Zozô) Ozores

I'm glad to help