title: How to login docker account in Gitlab-ci
body: <p>I have subscribed for a Pro plan of <a href="https://www.docker.com/pricing" rel="nofollow noreferrer">docker</a> account to <a href="https://www.docker.com/increase-rate-limit" rel="nofollow noreferrer">increase rate limit</a> in my self hosted Gitlab CI jobs. Then successfully logged-in using this command on the server:</p>
  <pre><code>$ sudo docker login -u user -p *******
  </code></pre>
  <p>This is my <code>.gitlab-ci.yml</code> file:</p>
  <pre><code>image: edbizarro/gitlab-ci-pipeline-php:7.3-alpine
  
  unittest:
    stage: testing
    services:
      - mysql:latest
    script:
      - ./vendor/bin/phpunit --colors --stop-on-failure
  </code></pre>
  <p>But when jobs get started, I'm still getting this error:</p>
  <pre><code>Running with gitlab-runner 13.6.0 (8fa89735)
    on fafa-group-runner n7oiBzAk
  Preparing the &quot;docker&quot; executor
  30:53
  Using Docker executor with image edbizarro/gitlab-ci-pipeline-php:7.3-alpine ...
  Starting service mysql:latest ...
  Pulling docker image mysql:latest ...
  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 (docker.go:142:4s)
  </code></pre>
  <p>Am I missing something?</p>