The detail from the text that explicitly supports the inference that the men on the dock are friendly is:
One of the men pauses to pet a cat.
This action suggests a friendly and gentle demeanor, indicating a positive disposition towards others, including animals.