This is a much-collected song, commonly known as Domeama or Jack the Jolly Tar. There's a version -Dumiama- on the Database, here. The version from the Penguin Book of English Folk Songs was posted here recently, too; a forum-search for "Jack the Jolly Tar" will find it.
Malcolm