What is the meaning of Middy?

a midshipman

A measure of 285 ml (10 fl oz) of beer; a pot.

Source: wiktionary.org