This is quite common as he is gaining a lot of information by smell and taste. Most dogs are happy just to smell but perhaps he is not getting enough information by just smelling alone or he is just still re-acting immaturely (he should grow out of this).
The dogs that responded aggressively may just have been saying "sorry can't cope with you there" and have told him off. It is these dogs that will teach your dog that they do not all cope well with this intrusion so eventually he should get the message. It's unlikely that the others dogs will actually give a hard bite its more common for them just to signal their annoyance by using this inhibited bite behaviour.
If you begin to get cross or punish him then you are in danger of teaching your dog that approaching dogs are bad things as he may not understand that you are only cross with his behaviour. Just that every time he goes to "shake hands" so to speak he gets punished. He may then become quite anxious every time another dog approaches.
It doesn’t look pleasant to us but we are not dogs and think how you would feel if someone shouted at you every time you greeted someone with a “hello lovely morning?” Just look away and smile and jolly on past with the promise of some tasty treats.
Hope this helps
Rosie Barclay.