title: Docker image Prune Filtering
body: <p>Currently I am running </p>
  
  <pre><code>while true; do
      docker system prune --all -f;
      sleep 6400;
      done
  </code></pre>
  
  <p>In a daemonset to remove older images in my containers.</p>
  
  <p>There is some unused images that I still want to keep around. Is there a possibility to filter out some images to not be pruned by this command?</p>
  
  <p>for example after running docker system prune command,the following should not change if I want to prune everything else except repository a</p>
  
  <pre><code>Repository         TAG          IMAGE_ID         CREATED     SIZE
  a                  12dac         3eadf            now          1
  a                  44rfd         233df            4 month ago  1
  </code></pre>
  
  <p>Thanks.</p>