Shipyard
A shipyard (also called a dockyard) is a place where ships are built and repaired. These can be yachts, military vessels, cruise liners or other cargo or passenger ships. Dockyards are sometimes more associated with maintenance and basing activities than shipyards, which are sometimes associated more with initial construction. The terms are routinely used interchangeably, in part because the evolution of dockyards and shipyards has often caused them to change or merge roles.
Captain of the port
In the Royal Navy, the captain of the port was the officer, usually with the rank of captain, responsible for the day-to-day running of a Naval Dockyard under the authority of the admiral-superintendent. He usually also held the position of Queen's or King's harbourmaster and was directly responsible for the captain's department, which among other things operated the yard craft.