During the Golden Age of Piracy, thousands of sea dogs sought fame and fortune. But the reality of a pirate’s life was less enticing than movies and television shows suggest