title: How to mirror dockerhub with artifactory
body: <p>Since dockerhub has started limiting downloads for non-paid accounts, I am frequently getting this error</p>
  <pre><code>ERROR: Preparation failed: Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit (executor_docker.go:188:15s)
  </code></pre>
  <p><a href="https://docs.docker.com/docker-hub/download-rate-limit/" rel="noreferrer">https://docs.docker.com/docker-hub/download-rate-limit/</a></p>
  <p>I have an artifactory server, how can I setup docker to cache/mirror from artifactory first?</p>