title: denied: requested access to the resource is denied
body: <p>I wrote gitlab-ci.yml file.
  I Login to gitlab registry with this command</p>
  
  <pre><code>docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
  </code></pre>
  
  <p>and in the next step build the docker image </p>
  
  <pre><code>docker build -t $REGISTRY .
  </code></pre>
  
  <p>But When i push docker image </p>
  
  <pre><code>docker push $REGISTRY
  </code></pre>
  
  <p>I get this error</p>
  
  <p>denied: requested access to the resource is denied</p>
  
  <p>How can fix this error?</p>