Use the cleat hitch knot to tie off your boat to a dock cleat.
Google cleat hitch knot if you don’t know what it is. I always use 3 hitches for redundancy.
Old ropes and new ropes will not slip free if tied properly.
Had to toss my anchor on another run away house boat yesterday.
Good luck fishing.