What to do with a drunken sailor.
Well one of the songs verses suggests that you put him in a long boat until he's sober, Early in the morning.
The sea shanty was sung to accompany certain work tasks aboard sailing ships, especially those that required a brisk action or pace.