I have a couple pepper plants in pots (one pot has Gypsy and (what I thought was Carmen but it's) a bell pepper, the other has a jalapeno and a habanero). The Gypsy and unknown bell are both setting fruit. I also have herbs (rosemanry, oregano, thyme, and marjoram) in pots.
My big experiment, is peanuts. Virginia peanuts, bought as plants, and now I see why they don't suggest growing in pots. The plants grow up, then flop, and the flop appears to be necessary for the pegs to reach the ground to produce peanuts. Most of them are flopping out of the pots. If I ever did it again, I'd have some sort of fence around the edge of the pot to keep the plant growth within the pot.