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