Use two dock lines. One for the bow and one for the stern cleat on your boat. Tie a number of loops into the lines and use a caribeener to connect two of the loops at whatever tightness you need to hold the boat. Use fenders over the cleats if you need to keep the boat off the dock.

3AE7AFD1-A32A-4D66-9657-652495BE3384.jpg