“Drunken Sailor” is a sea shanty, also known as “What Shall We Do with a/the Drunken Sailor”.
The shanty was sung to accompany certain work tasks aboard sailing ships, especially those that required a bright walking pace. It is believed to originate in the early 19th century or before, during a period when ships’ crews, especially those of military vessels, were sufficiently large to permit hauling a rope whilst simply marching along the deck. With the advent of merchant packet and clipper ships and their smaller crews, which required different working methods, use of the shanty appears to have declined or shifted to other, minor tasks. (Wikipedia)
Also know as drunken sailer bij the Irish Rovers