Err_connection_reset in browser while docker is running

Whenever the docker engine is running, I randomly get err_connection_reset when navigating the web or using apps that try to get internet access.

When I shutdown docker the issue disappears.

Can anyone help with this?

It shouldn’t happen on macOS. I could imagine on Linux when Docker CE is used and the Docker networks have intersecting ip ranges with your lan network, but when you run Docker Desktop for Mac, everything is in a virtual machine. Can you confirm you are using macOS as the category suggests?