Docker overwrites nftables firewall

Hi All, I’m still new with docker,

I’m using rocky linux 8.5, I’ve been having trouble with docker overwriting nftables rules. The INPUT chain would follow docker making it accept all connection.

Alternatively I’ve tried changing the table to inet but it only follow the inet FORWARD chain making containers unable to get internet access.

I have a basic config in /etc/sysconfig/nftables.conf

table ip filter {
        chain INPUT {
		type filter hook input priority 0; policy drop;
		ct state invalid counter drop
		ct state {established,related} counter accept
		iif lo accept
		iif != lo ip daddr counter drop
		iif != lo ip6 daddr ::1/128 counter drop
		ip saddr tcp dport 22 accept
	chain FORWARD {
		type filter hook forward priority 0; policy drop;
	chain OUTPUT {
		type filter hook output priority 0; policy accept;

I would appreciate any help i can get.