They can't be contained, but time can be bought to develop a vaccine, and that time is measured in lives.
With fully closed borders, Australia and NZ managed to have no increase in overall mortality. South Korea didn't even close borders, just imposed entry quarantines with strong test and trace, and was able to obtain a much lower net mortality than North America and Europe also.