Charles Finger, in Sailor Chanties and Cowboy Songs (1923) provides the following:

In the sealing outfits in the Antarctic, there was a chantie which was more properly a fo'c'sle song known as the "Dirty Cook". I have heard eight or ten men sing it for an hour or more with keenest delight, each adding his line, each mind busy with a couplet to follow while roaring the chorus. It was a song peculiar to the Chilean seaboard I think...

The ship's cook of course would join in heartily, quite unconscious of any incongruity between conduct and profession.