The initial attachment of a membrane to a target membrane, mediated by proteins protruding from the two membranes. Docking requires only that the membranes come close enough for the proteins to interact and adhere.