I'd tame him with an axe and invite him for dinner.
Some people have had success pinning them to the ground. I haven't tried. I would just refuse to keep a jerk.
I have 13 cockerels. All but one is destined for freezer camp. If number 13 is a jerk, he will join them.
The rooster that I have now has never tried to attack me. He is two years old. I did not try to turn him into a pet. He watches me, but shows no agression. He'll come running if he hears a hen squawk, but once he sees it's because I picked her up, stepped on her foot, or kicked her out of the bucket of feed I'm trying to carry, he goes back to minding his own business.
There are plenty of nice roosters. I see no reason to keep a mean one.