The line "Tommy used to work on the docks" is from "Livin' on a Prayer" by Bon Jovi (1986). The full couplet:
Tommy used to work on the docks
Union's been on strike, he's down on his luck... it's tough.
Note: The original answer incorrectly cited "She's Leaving Home" by The Beatles.