title: GitLab Docker Registry Push Failed - Access Denied
body: <p>I'm having trouble pushing to <a href="https://gitlab.com/help/user/project/container_registry" rel="noreferrer">GitLab Container Registry</a>. </p>
  
  <p>I can login successfully using my username and a personal access token but when I try to push the image to the registry, I get the following error:</p>
  
  <pre><code>$ docker push registry.gitlab.com/[groupname]/dockerfiles/nodemon
  
  The push refers to a repository 
  [registry.gitlab.com/[groupname]/dockerfiles/nodemon]
  15d2ea6e1aeb: Preparing 
  2260f979a949: Preparing 
  f8e848bb8c20: Preparing 
  740a5345706a: Preparing 
  5bef08742407: Preparing 
  denied: requested access to the resource is denied
  </code></pre>
  
  <p>I assume the issue is not with authentication because when I run a <code>docker login registry.gitlab.com</code>, I get a <code>Login Succeeded</code> message.</p>
  
  <p>Where is the problem?<br>
  How should I push my images to GitLab Container Registry?</p>