In keeping with the rest of the piece it would be more likely a quote from one of Dibdin's songs, thus not a work song. 'I'm Afloat' by Eliza Cook of course.
Cooke's set up reminds one more of Paddy West's methods of making a seaman, but much more upmarket. No doubt the same effect obtained though.