DO NOT mix dry Ice and GLASS, the glass bottle/container will explode into a million pieces under presure!!!
There is a reason why he used plastic bottles. Plastic bottles are flexible expand a bit and let the gas scape before pleasure builds up and the plastic bottle explodes. If there was no hole in the cap, the plastic bottle would explode too.
And if you need personal expirience to back it up....
When I was younger, my 2 brothers and I used to play alot with fire, fire works (the kind that you'll never see being sold in the US) and water with dry Ice. Although dry ice with water does not make flames, It does produce very nasty explosions. My older brother has a scar in his leg from an explossion with dry ice and a glass bottle. I dont remember how many stiches he has, but at least 10-15.
DO NOT USE DRY ICE WITH GLASS CONTAINERS!!!