use below guide if must install supervised (eg want SSD support). However, don’t think 32 bit OS will use all your ram.
Since you need a 64bit OS, Probably easier to just use 64bit hassio image for Pi4. Running hassio is way easier. I don’t think you can install 64 bit docker image on 32 bit OS (as you tried).