title: Can I stop a docker container by its exposed port?
body: <p>I've around two to six projects with docker on my computer, which I use in parallel some times and have to manually stop some containers (mariadb, mongodb, php, nginx, apache) manually every time I want to use another project. Is there a way to stop those containers by its port, so I could simply do <code>docker stop -p 3306</code> and add it to my Makefile <code>stop</code> section? And if not, what way should I go to optimize this workflow.</p>
  
  <p>I'm working on a mac with macOS 10.14.x and Docker desktop v18.09.2.</p>