A member of An Garda Síochána who was carrying out a drugs search was pushed aside by a man who then ran through Cork city centre throwing away some item as he ran.
Det. Garda Paul Leahy encountered Luke Hayes at Copley Street, Cork, on October 16 2018.
When searched he was found with two deals of cannabis in his possession.
Sergeant Gearóid Davis said, “He then pushed Detective Garda Leahy and ran away.”
He was caught and arrested in the city centre.
His room at St. Vincent’s hostel, Anglesea Terrace, Cork, was later searched and €100 worth of cannabis was recovered at the room. Eight Alprazolam tablets were also found.
Hayes, 25, pleaded guilty to having drugs for his own use and for sale or supply and he also admitted obstructing a drugs search.
Frank Buttimer, solicitor, said the offence went back almost two years and there had been no further offences committed by the accused in the meantime.
Mr Buttimer said there were many positive achievements by the accused man against a difficult background.
Judge Olann Kelleher said he could do 240 hours of community service for the obstruction of a drugs search.
He imposed a six-month suspended sentence for having drugs for sale or supply.
For having cannabis and Alprazolam for his own use, the defendant was fined €300 and €500 on the charges, respectively.