Not sure if you could bring them in and get anything. It would depend on the humidity in the house and direct sunlight for 6 hours.
But other than that, you can definitely grow in pots, buckets or any other container. Be sure they have drain holes. We use 25 gallon feed buckets that we drilled 3/8" holes in the bottom. Put a layer of screen on the bottom, a layer of gravel, another piece of screen and then good dirt. Our plants are always tall and healthy. We do the tomatoes the same way. We also add a dozen live earth worms to each bucket. Just be sure to check them to be sure they have plenty of water on them. Being in pots they'll bake quick, even terra cotta pots.