You do not need to worry about growing tomatoes in a container; as long as the container is at least 12” deep, your tomatoes’ root system will have plenty of room to stretch out.