A facilities manager was arrested for his "appalling conduct" after he began hurling abuse at doormen who refused him entry to a late bar, a court has heard.
Darragh Geoghegan (27) went on to resist arrest when gardai intervened in the drink-fuelled episode.
Judge Michael Walsh adjourned the case for the production of a restorative justice report.
Geoghegan, of Sandymount Green, Dublin 4, pleaded guilty to threatening, abusive and insulting behaviour.
The defendant also admitted failing to obey gardai and refusing the give his name and address.
Dublin District Court heard the incident happened at South Great George's Street at 3.10am last October 19.
When gardai arrived, they saw Geoghegan's friends holding him back while he was being threatening and abusive to door staff at The Globe, having been refused entry.
When gardai approached, he remained aggressive and refused to give them his details or leave the area.
He resisted arrest and his aggressive behaviour continued at Pearse Street Garda Station, where he again had to be restrained.
Geoghegan contacted gardai the following day and apologised for his behaviour, his solicitor Eoin Lysaght told the court.
He had drunk too much on the night and should have gone home when he was asked.
The judge said Geoghegan's conduct was "quite appalling".
He said it was bad enough on the street, but after he was taken to the garda station he would have expected "some sort of sense would have kicked in".