This is a pun on 'get docked' which in this context means to deduct (something, especially an amount of money), like you'd get docked pay if you showed up late for work. But it's also being used because longshoremen work on docks in the harbour
When longshoremen show up late for work they get docked .