Sentence:  ... as a duck for life that dives, / So up and down the poor ship <WSD>drives</WSD>: 
Meaning of the word marked with <WSD> tags:  To be moved or propelled forcefully ("especially of a ship").