Coming to at a dock:

If you have to come to at a dock or pier on the windward side, go well to windward of it, lower your sail, and steer straight for it. Have an anchor and warp ready aft, and when close enough to reach let go your anchor and pay out, checking her way as you near the structure.