Just for clarity, the most recent issue was a very large German shepherd, two incidents with the same dog. I was riding a local wood and going quite fast, at the last moment I realised there were dogs on a parallel trail, I realised I had spooked the dogs, so slowed to a halt, put my bike in frnt of me and waited for the owner to take control. I put this one down to me as I startled the dog, I wasn’t attacked, but I was glad to have my bike to jump behind.
The second incident was with the same dog, i was riding slowly and aware of it fifty yards ahead and decided to stop and let them get ahead. The dog charged at me barking and growling and was clearly trying to get to me through my bike. It is the biggest GSD I have seen in my life and I will admit I was scared( for context I am used to large breeds like Rotties and mastiffs, currently have an eight stone mastiff cross). Eventually the owner took of her headphones, mumbled an apology and scuttled of dragging her dog.
The very next day I was out running, stopped as I passed a collie, spoke to the owner, walked on a bit to give a gap, three hundred yards later the dog jumps up at my back. I wasn’t attacked as such, but I’m quite a big guy, a child would have been knocked on their face.
As I said, some dogs and owners are crap.