Had a similar thing. Woke up sick and tired. Decided no drink today, by six o'clock in the evening I was on my third drink before I remembered I wasn't supposed to be drinking.
Cunning, baffling and powerful we call it. I had no effective mental defense against the fatal first drink. This time I managed to get sober by throwing myself into the program of AA. The need to drink is long gone. I have a totally reliable defense.
But sometimes detox or rehab, some kind of break is required to break the cycle, and then a program such as AA can deliver the long term result. All the best.