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?

thanks @rimelek
yes it’s a mac :frowning: I can’t resolve this. I tries changing the docker subnet but no success.

Since Docker is running in the VM of Docker Desktop, the network in the VM can’t affect the host network, so everything I share after this is just a guess.

  • Maybe you run many containers so the Vm uses to much resources which makes the browser unstable.
  • You could have a mounted system folder which is broken by a container. I don’t think it is likely.
  • There is a “Host network” feature in Docker Desktop which forwards ports between the host and the virtual machine. If you enabled it and it is not working properly, it could affect some network traffic.