The riddle
Where Do You Take a Sick Boat?
AnswerTo the dock
Dock and doc
Doc is an informal word for a physician. The question treats the boat like a patient and asks for the nearest office. The answer sends it to the place where boats stop, and the laugh comes from how neatly that fits.
Dock has more than one meaning. In British usage it can mean the body of water next to and around a pier. The riddle works with either meaning, since a boat is welcome at both.