title: How to use multiple docker repositories in a Jenkins pipeline
body: <p>I have a Jenkins pipeline in which I need to log into two different docker repositories. I know how to authenticate to one repo using the following command</p>
  
  <pre><code>docker.withRegistry('https://registry.example.com', 'credentials-id')
  </code></pre>
  
  <p>but don't know how to do it for more than 1 repo?</p>