I have seen the police on several occaisions removing a bottle of beer or a cup of alcohol from persons in public, walking , riding bikes, and in golf carts, and making them pour it out.I think this started as a result of several alcohol related injuries from fights a couple of years ago.
I do not think anyone, including the police, would object to you greeting your friend with a drink on the pier! Have fun!