Depends. is this a private boat dock or in a marina? Every marina I have had boats in the electric meter at the boat, where there is one, is read by the marina, and usage is charged monthly. The boat owner has no direct contact or account with the utility. So an interconnection agreement is not really possible.
Dock space is usually very limited and most harbormasters will not allow things to block the dock. How would you or your neighbor get to their boat if the dock was covered in an array? Now if you had a cover berth maybe the roof could be used. Anyway, a lot of variables in this.