A docking device, for a milking parlor with a rotary platform and a plurality of milking stalls, includes a first docking unit with a part of a first milk line connected to the platform and a second docking unit with a part of a second milk line separately arranged from the platform. At least one of the docking units includes an adjusting mechanism allowing an adjustment of a position of said docking unit in relation to the other docking unit. At least one of the docking units is associated with a guiding surface configured to guide the other docking unit during the movement in order to reach the docking position in which a closed connection is provided between the outlet opening of the first docking unit and the inlet opening of the second docking unit.