I've grown different varieties of bell peppers, jalapeno, Serrano, pequin, habanero, Hungarian, and probably a couple more I'm leaving out, in containers and all did very well, so it's not that you can't or shouldn't grow them in containers, millions of growers do it successfully. There's something fundamentally wrong if you can grow several types of peppers and other plants but jalapenos just cause you grief.
The basics of growing include
* An appropriate grow medium - one you can water to beyond the saturation point w/o worry the soil will stay soggy for too long.
* Getting watering intervals right
* Watering correctly - to beyond the point of saturation - so you're washing accumulating salts out of the soil, and after several waterings will have reset the EC/TDS (fertility) levels to 0
* Fertilizing regularly with an appropriate fertilizer
* And for peppers, a full sun spot. If root/soil temps climb above 90* you need to shade the pots.
If you get that right, you'd have to work extra hard at failing.
Al