Container gardening at its best!
Sun & Soil
Corn requires soil that retains moisture well, while not getting soggy and water-logged. A peat based potting soil is a safe bet. You can also add mulch to help the soil retain moisture. Corn likes warm soil and full sun, so choose a place that gets 6-8 hours of sun a day. You can place your corn on a wall, which will help retain heat and reflect sunlight.