title: docker remove containers by image
body: <p>I need the smallest code possible to remove all containers that were run from a specific image. For example, to run the container:</p>
  <pre><code>docker run -p 8888:80 fakeuser/my-image-name
  </code></pre>
  <p>And to remove the container (or containers):</p>
  <pre><code>docker rm -f &quot;all containers that were run from the image fakeuser/my-image-name&quot;
  </code></pre>
  <p>Is this possible? If so, whats the syntax? A one liner would be great if possible.</p>
  <p>Thanks in advance</p>