My roommate and I got in a fight

I've been sober for 3 1/2 months. I live in a sober living facility. It's a studio apartment I share with a roommate. Prior to being sober I was homeless living on the streets.

We got in an argument over my cleanliness. He kept getting more and more angry I was just lying on my bed. He got so angry I got anxious and started laughing at him. That's when he went from a 6 on the anger scale to a 10 and exploded.

After about a minute of him acting that way I exploded. I told him if he wanted a problem we can have problems. I am not proud of this... I struggle with anger it's like someone else in my head took over. Now we might get kicked out, but my problem is my anger. That's not who I want to be no matter how irrational he got I should of maintained my composure.

I can't lie, he's even apologized as have I but I am still angry. How do I begin to retake control of my mind going forward. I never want to act that way again, I want control of my emotions.