Stray dogs in Istanbul are almost never dangerous. Most have plastic eartags which show that they've been vaccinated. They're used to people around them and they usually mind their own business. They are usually friendly, however, it's always good to keep in mind that they're stray dogs and may not always love being petted.