Eye doctor or primary doctor?

I think I may have an eye infection. Which doctor should I see to have it checked? My eye doctor or my primary doctor?