A decision was made not to destroy the rottweiler after an incident involving children and Gardai.
A dog deemed to be dangerous by a Tullamore District Court judge has been released after being detained for more than three weeks.
18 month old rottweiler 'Max' was being held since October, after incidents involving children and a Garda sergeant.
Returning 'Max' to his owner, Judge Catherine Staines said she was doing so on condition he undergo training for a year.
A previous court sitting had been told a determination would have to be made as to whether or not the dog would be destroyed.
Judge Staines said on Monday there had been evidence he had jumped up on a girl's shoulders and nipped her on the tracksuit, tearing it.
There was also evidence from Sargent Tony Quinn that the dog had lunged at him and nipped him on the ankle.
The dog's owner - Jennifer Murphy of Main Street, Daingean - said he was a happy-go-lucky but hyper dog who was still a pup and didn't know his size.
Judge Staines ordered that the dog be leashed and muzzled when out in public, in line with the regulations for his breed.
She said the Gardai could re-enter the matter in court if the dog was found on the street without a leash.