title: How to filter docker process based on image
body: <p>I have been trying to get the container id of docker instance using docker process command, but when i'm trying with filter by <strong>name</strong> it works <strong>fine</strong> for me.</p>
  
  <pre><code>sudo -S docker ps -q --filter="name=romantic_rosalind"
  </code></pre>
  
  <blockquote>
    <p>Results container id : </p>
    
    <p>3c7e865f1dfb</p>
  </blockquote>
  
  <p>But when i filter using <strong>image</strong> i'm getting all the instance container ids :</p>
  
  <pre><code>sudo -S docker ps -q  --filter="image=docker-mariadb:1.0.1"
  </code></pre>
  
  <blockquote>
    <p>Results Container ids :</p>
    
    <p>5570dc09b581</p>
    
    <p>3c7e865f1dfb</p>
  </blockquote>
  
  <p>But i wish to get only container id of mariadb. </p>
  
  <p><strong>How to get container id of docker process using filter as image ?</strong></p>