A TAXI passenger seized the cabbie's keys and repeatedly stabbed him with a corkscrew in a "persistent, unprovoked" attack, it has been alleged.
John Scully (30) is accused of assaulting taxi-driver Denis Hawkshaw (55), who "feared for his life" during the incident.
Judge John O'Neill refused to grant Mr Scully bail and remanded him in custody when he appeared in Dublin District Court.
The defendant, with an address at Hazelcroft Gardens, Finglas, is charged with assault causing harm at Royal Canal Avenue, Ashtown, on August 9.
Objecting to bail, Garda Damien Sheehan cited as grounds the seriousness of the allegations and the possibility of further charges.
The maximum penalty on conviction is five years in prison, the garda said.
It was alleged that Mr Hawkshaw picked the accused up on Prussia Street, Dublin 7, at 10pm. Mr Scully asked the driver to pull over and exited the rear of the vehicle.
It was alleged he then approached the driver's side and shouted at the cabbie: "Get out of the car or I'll stab you."
A struggle ensued in which Mr Hawkshaw alleged that the defendant grabbed the keys from the ignition. In a further struggle, Mr Scully allegedly stabbed the driver a number of times in the arm with a corkscrew.
According to the garda, the accused managed to get back into the car with the keys.
However, Mr Hawkshaw shouted at witnesses to help. Gda Sheehan said it was alleged the witnesses came forward and helped to restrain the accused, who was "extremely violent".
It appeared to have been a persistent and unprovoked attack, the garda said.
The alleged victim sustained "rather serious injuries".
Judge O'Neill said he was refusing bail on "the totality of the evidence" and remanded the defendant in custody, to appear in Cloverhill District Court this Thursday.
Legal aid was granted after the court heard the accused was unemployed.