I’ve been unsuccessful containing plants like mint in a bucket set in the ground. The roots grow out but looking at all those little pollinators buzzing around when it’s blooming I kind of think seeds might sprout too. The way I contain it is grow it in a corner where I can keep it mowed around it. It tries to spread and I ruthlessly beat I back with the mower.