title: How to pull docker hub images with tag name as a regex
body: <p><strong>Requirement:</strong>
  Let's say I have below listed images in docker hub:</p>
  <ul>
  <li>imagename:gvh</li>
  <li>imagename:vidgvh</li>
  <li>imagename:gvhjeevi</li>
  <li>imagename:herogvh</li>
  </ul>
  <p>How do I pull all these images with varying tag names but contains a common subpattern with one docker pull command?</p>
  <p>For aws ecr, we have to run below command, but for docker hub no such option available.</p>
  <p><code>aws ecr list-tags-for-resource --resource-arn arn:aws:ecr:region:account_id:repository/repository_name</code></p>
  <p>Refer: <a href="https://docs.aws.amazon.com/cli/latest/reference/ecr/list-tags-for-resource.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/cli/latest/reference/ecr/list-tags-for-resource.html</a></p>
  <pre><code>docker pull imagename:&lt;regex-tag&gt;
  </code></pre>