How to control my eating

I’ve been trying to watch my eating but for the past week I’ve just spiraled. I’ve been eating non stop and gained 5 pounds. Even though it makes me feel like shit I just want to eat. How do I get over cravings to eat everything?