If you want large onions,onions need space, water and fertilizer; not till I started to grown mine on a berm where they always got water but the soil was still well drained did I start getting large onions, and this took me decades to learn.
Are you going to bury that container in the soil? If not the sun beating down on the sides will make it a sauna.