Garlic can be successfully grown in pots. Use a fresh standard growing medium. Typically plant 2-3 cloves to a 15cm pot, 4-6 to a 20cm pot and 8 – 10 to a 25cm pot.
Be sure to use pots with at least 15cm depth to allow adequate freedom for the roots. Keep well watered and stand outside on a patio or window ledge, in a good sunny position.