They set an anchor on approach for that purpose. A technique used by Hurtigruten since the days of single screw ships w/o bow thruster.
Still one left:
In fact it is still used regularly even by the modern ships with all the latest and best of equipment and plenty of power.