Any container that has drainage holes and contains the planting mix will grow tomatoes well. Among the options are rigid plastic, “faux” terra cotta, plastic grow bags, fabric mesh grow bags, and the newer, more sophisticated self-watering products, just to name a few. The only container that is best avoided is terra cotta, due to the porosity of the material and thus added vigilance needed to ensure that the plants don’t dry out quickly.
The volume of the container is more important than the materials. Indeterminate tomato varieties require a capacity of at least 10 gallons for adequate results. Dwarf and determinate tomatoes will do fine in containers of five gallons minimum.