A 47-year-old Florida man with a history of domestic violence was arrested in an apparently unprovoked attack on two women along San Francisco’s Embarcadero, officials said Sunday.

The suspect, George Kennedy, was booked in San Francisco Jail on suspicion of two counts of attempted murder, assault with a deadly weapon, battery causing great bodily injury and resisting arrest in the early-morning rampage Saturday.

It began just before 7 a.m., when Kennedy allegedly stabbed a woman in the back as she was jogging near Pier 19, witnesses and police said.

Before being rushed to a hospital, the victim told police her assailant fled on a bicycle, officials said. Then 15 minutes later, Kennedy allegedly attacked another woman with some sort of “tool” a mile away at Pier 39.

Both women, who were not named, were treated at a hospital with non-life-threatening injuries, police said.

Officers detained Kennedy, who matched the description of the attacker, a short distance from the scene. He was seen wearing an old-time striped train engineer’s cap and tan overalls while in custody next to an orange beach cruiser bicycle.

Records show that Kennedy has previous addresses near Tampa, Fla., and has had numerous brushes with the law, including arrests for domestic battery and criminal mischief.

Police have not said whether they have determined a motive for the attacks. It’s unclear what brought Kennedy to San Francisco.

Anyone with information about the incidents was asked to call police at 415-553-0123.

Evan Sernoffsky is a San Francisco Chronicle staff writer. Email: esernoffsky@sfchronicle.com Twitter: @EvanSernoffsky