Why does some one year old dog has green pus coming out of his penis?

this may need checked out by a vet to check he does not have an infection. some male entire dogs will have a degree of discharge from the penis and prepuce (the skin that covers the penis) so this may also be normal for your dog. the vet will be able to tell the difference and give you suggestions to help minimise the discharge if it is normal.