Possibly from noggin 'small drinking vessel; small quantity or measure of alcoholic liquor' (compare drink).