Ships (vessels) are governed by the Law of the Sea - Maritime, Admiralty, Merchant Laws In other words, by the UCC https://www.law.cornell.edu/ucc