Please help. What's wrong with my head

I have constant dandruff, horrible painful pus pimples, everything itches, and it's been like this for years. My head gets greasy quickly, first photo after washing my head, second photo before. If I do not wash every day, on the second day there is dandruff on the eyebrows and peeling forehead. I shaved my head on purpose to show you a picture so you can see it. Doctors just prescribe dandruff shampoos and tell you to go on a diet, I tried a gluten free diet, gave up sugar, after that there was minimal improvement at the margin of error