A
dock is a chamber used for building or repairing one
ship. A
wharf or
dockyard consists of one or more docks. Dry docks can be emptied of water, so all parts of the ship can be investigated, cleaned, maintained and repaired.
Related terms harbor, marina, dry dock.