docker and flatpak/snap are _extremely_ different tools with very different purposes.