This is a tale from Geoffrey Chaucer's Canterbury Tales.

The Cooks Tale is a bad, short tale about how you have to throw the bad apple out of the cellar before it rots. Cook himself is the bad apple of the Canterbury Tales. He is a drunkard.