Artur Dukat (33) had been drinking at a party and had no recollection of his violent behaviour on the night, a court heard.
The accused, with an address at Corbawn Lane, Shankill, pleaded guilty to public intoxication at Glenageary Road on August 19.
He also admitted a charge of violent behaviour in Glenageary Garda Station on the same date.
Dun Laoghaire District Court heard gardai were on patrol at 2.38am when the accused stepped in front of their car.
He was highly intoxicated and gesticulating at them but they could get "no sense" from him.
Dukat was arrested and taken to Glenageary Garda Station, where he struck out at one of the officers, but missed.
The defendant apologised unreservedly for his actions, his solicitor, Ronnie Lynam, said. He had been at a party on the night and had drunk "far too much beer".
He remembered walking after leaving the party and sitting down on a kerb, but the next thing he recalled was waking up in a garda cell. What he did was not done deliberately.
It was the first time he had done anything like this and it was "all due to alcohol".
Mr Lynam asked Judge John O'Connor to consider leaving the accused without a conviction.
"His employer would not be impressed by anything to do with inappropriate behaviour because he has to have regard for his customers", Mr Lynam said.
Judge O'Connor adjourned the case and said he would strike the charges out if Dukat made a €350 donation to the Garda Benevolent Fund.