Hamzah Hussain, 24, of Reedswood Lane, Birchills, accosted the rider before hitting and kicking him near the Essar garage, in Ablewell Street, on May 6, 2020. When he was arrested officers caught him in possession of cocaine for personal use.
Hussain was sentenced at Wolverhampton Crown Court on Tuesday after previously pleading guilty to attempted robbery, possession of a bladed article and possession of cocaine.
Mr Edward Soulsby, prosecuting barrister, said Hussain's actions were captured on CCTV.
Sentencing him, Mr Recorder Anthony Warner told Hussain that his situation underlies the reason police forces were urging members of the public not to carry knives.
He said Hussain had used "a shod foot" and "the victim's helmet against him as a weapon" during the protracted attack, "putting the victim against the wall and taking him to the ground which must have been frightening".
The judge said there was a stand-off between Hussain, and police officers when he was arrested.
"It looks as though you tried to dispose of it (the weapon) by trying to throw it away. The police came and you had to be restrained by the use of spray because you would not comply when asked by the officers so you were arrested," said the judge.
The court heard that Hussain had also pleaded guilty to possession of a knuckleduster in March the same year, relating to a family dispute over an arranged marriage which subsequently did not go ahead.
"There were tensions and you did not conduct yourself in the best way. There was a marriage to be arranged and in the end it did not occur," said the judge.
"On the other hand, I have heard that the death of your father in 2021 had a profound effect on you. You are now the head of your family. More importantly you have not committed any more offences."
The judge added that the case had been delayed due to the coronavirus pandemic.
Hussain was jailed for a total of three years and one month. He must serve up to half before being released on licence.
The judge also ordered the forfeiture and destruction of the weapon and drugs.