title: Why do I get "Error response from daemon: denied" when trying to pull an image from ghcr.io
body: <p>I have two repositories. A and B.</p>
  <p>Inside A, I have a docker image. Let's say it's name is <code>ghcr.io/org/a</code></p>
  <p>Inside B, I have an action that wants to use this package. Both repos are private.</p>
  <p>Here's my action code:</p>
  <pre><code>    - name: Log in to GitHub Container Repository
      run: |
        echo &quot;${{ secrets.GITHUB_TOKEN }}&quot; | docker login ghcr.io -u ${{ github.actor }} --password-stdin
      - name: Pull the image
      run: |
        docker pull ghcr.io/org/a:latest    
  </code></pre>
  <p>As you can see first I log into ghcr.io and I get the <code>Login succeeded</code> message. Then I want to pull the image from my other repo.</p>
  <p>But I get this error:</p>
  <blockquote>
  <p>Error response from daemon: denied</p>
  </blockquote>
  <p>However, when I login into ghcr.io from my own machine, I have access to both repositories and I can pull any image from any private repository of mine.</p>
  <p>Why GitHub Action from B can not pull image from A in spite of being logged in?</p>