
Since 1 megaton equals 1 million tons of TNT equivalent, 1 million tons of TNT would occupy 7,000 of those containers above. A ship capable of carrying those 7,000 containers would be around 16,000 TEU (more precisely, 15,750 TEU): the current largest ship in the Maersk fleet, the Emma Maersk, would be a little short on capacity with respect to carrying those containers - here's an image of the ship, which is 1,302 feet long, has a beam of 184 feet, and a draught of nearly 53 feet:

The sister ship Ebba Maersk set a transporation record of 15,011 TEU on one voyage, but this is still a little short of the 16,000 TEU requirement. The proposed sucessor to the Emma Maersk and her sister ships, the Triple E Class (ships yet to be named, as they're still on the drawing board), are rated at 18,000 TEU, and would be able to carry the 7,000 containers described above. Basically, when stacked and loaded upon one of the forthcoming Triple E Class ships, 1 megaton of TNT in 2.25 TEU containers would occupy space equivalent to a warehouse a quarter of a mile long by 200 feet wide by 60 feet high.
Back in 1962, the US military packed a warhead with 1.2 megatons yield (the W56 warhead for the Minuteman ICBMs, decommisioned in 1993) into a space equivalent to 3 PC server cases. Quite a bit smaller than the aforementioned ships.
