London Underground, Tube Lines Ltd and Schweerbau GMBH had pleaded guilty to endangering passengers and staff under Health and Safety law, after the 39-tonne maintenance wagon hurtled through seven stations before it could be stopped.
A train in front of it was told to keep going and not stop, while its passengers were told to run to the front carriages, the Old Bailey heard.
Judge Richard Hone said: "There was the potential of terrible tragedy."
He said the runaway train was out of control for four miles during 16 minutes.
"To those involved it must have seemed an extremely frightening eternity," he added.
More top news
In another reminder of the capital's housing crisis, a 3 metre by 4 metre room has gone on sale as a buy to let rental opportunity
The man is fighting for his life in hospital today after being hit by a tipper truck in Battersea
Singer knocks Oasis from their 18-year hold on the top spot as her third album sells more than 800,000 copies in its first week of release