With RHEL8 and Firewalld with FirewallBackend=nftables enabled, docker port forwarding (e.g. docker run --name test-nginx -p 8080:80 -d nginx )does not work
Might need to revisit the logic in https://github.com/docker/libnetwork/blob/master/iptables/firewalld.go to get this to work
Workaround -
- Set
FirewallBackend in /etc/firewalld/firewalld.conf to iptables
- or Include the interface
firewall-cmd --permanent --zone=trusted --add-interface=docker0; firewall-cmd --reload
With RHEL8 and Firewalld with FirewallBackend=nftables enabled, docker port forwarding (e.g.
docker run --name test-nginx -p 8080:80 -d nginx)does not workMight need to revisit the logic in https://github.com/docker/libnetwork/blob/master/iptables/firewalld.go to get this to work
Workaround -
FirewallBackendin/etc/firewalld/firewalld.conftoiptablesfirewall-cmd --permanent --zone=trusted --add-interface=docker0; firewall-cmd --reload