A taxi driver slashed a tyre of a delivery man's van after he confronted him about noise as he dropped off kegs of beer at a pub.
Igors Smirnov (64) was working nights and claimed his sleep was being disturbed by deliveries to the pub.
Judge John Lindsay ordered Smirnov to pay €600 compensation to the victim.
The judge also ordered Smirnov to donate €200 to the Children's Sunshine Home Hospice Fund and adjourned the case to May.
The defendant, from Stepaside village, Enniskerry Road, Stepaside, admitted criminal damage and possessing pepper spray.
Garda Trevor Gibbons told Dun Laoghaire District Court the victim had parked his vehicle in the loading bay at Morgan & Mac's pub in Stepaside village at around 2pm last March 30 to deliver kegs of beer.
Smirnov, who had a grievance about noise, confronted the victim and slashed one of his tyres. The damage amounted to €420.
Gda Gibbons said the victim made a complaint to gardai and the culprit was identified from CCTV footage.
The garda later called at the defendant's home and he was taken to Dundrum Garda Station for questioning.
When emptying his pockets at the garda station, Gda Gibbons said Smirnov took out a black leather pouch that contained a Swiss army knife and a can of pepper spray.
Gda Gibbons said there was no suggestion the spray had been used.
Smirnov had no previous convictions, the court heard.
Defence lawyer Gavin Keogh said the pepper spray was in the defendant's home and he had taken it to the garda station. He did not know he was not allowed to carry it.
Mr Keogh said Smirnov was married and had two grown-up children. The incident had been very distressing for him.
The court heard Smirnov had been working nights as a taxi driver at the time and had an issue with beer kegs being dropped from a height and interfering with his sleep.
Mr Keogh said Smirnov had gone down to remonstrate with the delivery driver and had "taken matters into his own hands".
The dispute was now resolved and there were no more difficulties, the court heard.