Any Scot can tell you that the term doch-an-doris has the same meaning as “stirrup cup,” and is literally “a drink at the door,” that is, a parting drink.
Sometimes it is written doch-an-dorach, but in any case it represents the Gaelic deoch, “drink,” an “the,” and doruis, “door.”