To be clear, the problem is not nftables but docker. They don't support it.
I probably drop my usage of docker though in the future. There are also other problems with it.