Eye infections in dogs can be caused by bacteria, viruses, allergies, trauma to the eye, foreign bodies, tumors, and underlying medical problems. Eye injuries and infections should be treated by a vet promptly to ensure preservation of sight.