There is no 100% guarantee on any method to containing cattails but the container idea is a good one.
One way that has worked for me is floating islands. The cattails have not spread anywhere else in the pond after almost 4 years but there is still that possibility.