Most veggies do very well in containers and this is ideal if you do not have a great deal of space.
However, there are some that must be planted alone in a container and not with other plants.
The first one is celery - these delicious and useful veggies must have a container of their own as when they develop, they will fill the container leaving no room for other plants.
I made the mistake one year of mixing some other plants in with my celery and the result was that the celery took over and the other plants died.
The next one is origanum - this wonderful herb is great in containers and looks lovely as it cascades over the sides.
However , it is a vigorous grower and will soon swamp the container.
And lastly, the wonderful mints -they grow well in a container and if harvested on a regular basis, will keep on growing.
I would suggest that even in the open ground, one should keep mint in a container otherwise it will take over the entire garden bed.