A petrol station manager was pushed during an assault after he got involved in a row with two other men.
On eof them, Michael Keenan (26), was using anti-anxiety tablets at the time and did not remember the incident.
He apologised to a court for his behaviour.
Judge Dermot Dempsey imposed a two-month sentence, which he suspended for one year.
The defendant, of Cardiffsbridge Road, Finglas, admitted a charge of assault.
The incident took place at Applegreen on the M1 southbound near Lusk on December 15, 2017.
Gda Michael Walsh told Swords District Court there was a row between two males and a manager at Applegreen was pushed.
He did not suffer any injuries, Gda Walsh said.
Keenan was identified as the culprit and was subsequently charged.
The court heard Keenan had 66 previous convictions, including for assault.
Defence solicitor Fergal Boyle said Keenan married in 2014 and he and his wife had two young children.
Mr Boyle said the defendant had been on Xanax at the time of the incident but was now drug-free.
Keenan was focused on remaining drug-free, and was attending a gym.
He was unemployed and on social welfare, the court had heard.
In relation to the assault, Mr Boyle said the allegation was that the assault was "no more than a push" and there were no injuries to the victim.
Imposing a suspended sentence, Judge Dempsey said it appeared Keenan had anger management issues and ordered him to attend counselling.