I'm sorry, but I'm not a veterinarian. If your dog has white discharge coming from the inner corner of its eye, consult a vet as soon as possible.
This could range from minor irritation to a serious infection. A vet can diagnose and treat the problem properly. Do not attempt self-treatment.