The story
Said to be from the term “ship-in-a-bottle episode”, the nickname given by the cast and crew of the television series Star Trek (originally broadcast 1966–1969) to an episode set entirely on board the starship USS Enterprise.
Etymology from Wiktionary, CC BY-SA 4.0.