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
The family of Oliver Dearlove urged people to "think again" before using their fists, as the man who killed him began a six-year jail term.
London Fire Brigade took Southwark Council to court on four charges in relation to safety breaches at Lakanal House in Camberwell.
Oliver Dearlove died 24 hours after receiving the fatal blow outside Morden's wine bar in Blackheath last summer.