In all fairness, the docking issue is mute. One of the greatest advantages of wooden battle ships of the line was the amount of skilled men on board and the ease of which they could be repaired anywhere...
Ships could refit whilst at anchor off a beach, as long as there was good timber and sufficient supplies ashore, so the scope there is an interesting one.
Also the issue of going INTO ports... CA 'might' have missed a trick here, men were press ganged into service... especially in the RN. If a Ship in those days actually went along side... half the crew would leg it! (I know I would if it was Hawaii!) So ships of the line would often remain at anchor offshore anyway.
My final point... Navies of the day where VERY dependent on the use of allied ports not only for supplies, but for Communication... History Lesson.. The French HAD to muster their fleet at Cadiz (Spain) prior to Trafalgar 1805 as the RN had literally scuppered their chances at Quiberon Bay 1759, the Nile 1798 and the RN was very dependent on the Portugese ports both in Portugal and the S Americas particularly when defending imperial interests abroad and protecting trade routes.