Growing mint in a planter is a great way to keep it from taking over your garden - eviltoast

And it works great on a balcony or indoor garden! Mint is also naturally pest resistant.

Image source: Bryan E. McCay