I stick with killport package, just run something like killport 80 command and it will stop any container that has exposed this port to host (not internally inside some docker network).
killport 80