Patrick Brady (36) claimed he does not remember anything about his behaviour.
Judge Cormac Dunne imposed a two-month sentence but suspended it for six months.
The defendant, of Newtown Court, Malahide Road, Coolock, admitted before Swords District Court to public drunkenness, threatening and abusive behaviour and failing to give his name to gardai on August 20.
Sgt Bob Kavanagh said gardai were called to the junction of Main Street and Malahide Road in Swords at about 10pm following reports of an intoxicated man who was attempting to punch and kick traffic as it went past him.
Sgt Kavanagh said that when Gda Kevin Barry approached Brady he became abusive to him, telling him “What do you want with me, you p***k” and “Get away from me, you b*****ks”.
Sgt Kavanagh said Brady also threatened to burn down Gda Barry’s house.
Brady was taken to Swords Garda Station where he continued to be abusive and refused to give his name to officers.
The court heard that Brady has 57 previous convictions.
Defence lawyer Patrick Jackson said Brady does not remember the incident.
Mr Jackson said Brady has battled an addiction to alcohol for most of his adult life.
He said the defendant has gone periods without taking a drink, and does not come to garda attention when he is sober.
Mr Jackson said he is currently sober and getting the help he needs.
Judge Dunne said Brady was particularly crude and abusive towards the garda.
However, he accepted that Brady was doing his best to stay sober and said he was willing to give him a chance and impose a suspended sentence.