Here's something that works and works well if you follow through and do it with attitude:
When is the last time anyone saw one rooster holding another as he walked around doing his daily chores? That doesn't even compute in his brain case. Chickens respond to chicken behaviors, not human behaviors. Treat him as one chicken would to another...in this case a dominant rooster would do to a subordinate. And dress for the job..other chickens have scales and feathers, so put some cloth on your legs as protection. This kind of behavior modification doesn't take long but it does take a confident manner and consistent behavior from all humans who walk into that coop and no one feels confident when they are only wearing shorts around a crazy acting rooster .
As @lazy gardener said, make him give you space at all times, even when he's making friendly. Roosters don't commonly make friendly with one another unless they were raised together and have already established pecking order. When you turn your back, keep one eye on your nether regions...you can bet all the chickens do the same thing which is why it's hard to catch a normal, untamed chicken. Don't be on the defensive...dominant birds never are on the defensive. They are always the aggressors and they act first, not last.
Watch your birds as they interact and eat...watch what the dominant hens do to the subordinate ones. They make them MOVE. The lesser hens are always on the look out for the dominant ones because they have already learned this one principle "If I do not move away from this food, this roost, or this nest right now, she is going to peck me...but HARD". The lesser hens eat while keeping a wary eye over their shoulder...and your rooster needs to be feeling exactly that way when you get done with your behavior modification.
Find yourself a light weight but sturdy rod about 4-5 ft. in length and take a chair into your coop/run where you feed. Sit down, get comfy. Keep your wand at ready and when the rooster approaches "your' hens, give him a peck. If he doesn't move and move fast, stand up and peck him harder...then move towards him calmly and surely, and keep pecking him until he's on the run. Sit back down and watch. Don't let him at the feed or near your hens..you should be able to accomplish that now with just a point in his direction with your wand.
Now, while you are doing this your hens may be running around and freaking out but they will soon realize they are not the target and you can see them visibly relax as they realize he is your target. Be calm, don't move fast but move decidedly and with purpose. Stare at him and don't take your eyes from him.
Then, let him come into eat...let him get comfy eating and not getting pecked. When he's the most unaware of you, give the floor next to him a resounding WHACK with that rod, hard enough to make him jump and run. If he comes back to eat, peck him until he leaves the premises. Stand up and "hold" him in the corner with your presence and with your rod...don't corner him but just hold. If he is facing you, advance and peck him until he's running for his life. If he is pacing back and forth, trying to get away from your presence, your work there is done for the day. Exit stage left/right and let him eat.
The next day when you go in to feed, walk directly towards him with your wand until he is moving, moving, moving. Preferably move him out of the coop into the run and don't let him back in until you are done feeding. Don't let him in until you are ready to leave.
If all of this is working, don't think your job is done. Keep acting like you own this coop, that no 2 ft feather duster is going to rule your roost and every chance you get surprise him with a touch, a lunge in his direction or a peck from your wand until he is moving away from you quickly. That's how the big boys do it and, until now, that's what he's been doing to you...the sneak attack, the attempts to get you to MOVE and run away, inducing fear until you have to worry about attacks from behind.
Don't feed him treats. When is the last time anyone ever saw a dominant rooster call over another rooster and let him eat the goodies he just found? Nope. That is only reserved for the hens. Let the hens eat goodies, keep the rooster away from the treats. He can pick up any crumbs that are left when you and your hens move off.
Just turn the tables on him and he should settle right down. Then remember to keep him looking over his shoulder with the occasional peck or jump at him out of nowhere so he doesn't relax around you. And that's how the big boys do it. Soon you won't need the wand, just your confidence and presence should do it but I find it's a little fun to sit down in the coop and have a "train your rooster session" just to see if they still remember. It's good entertainment!