From Wiktionary, the free dictionary
In allusion to the soldiers' red uniforms.
lobster box (plural lobster boxes)
- (slang, archaic) A British troopship.
- (UK, slang, archaic) A barrack, or military station.
- John Camden Hotten (1873) The Slang Dictionary