denied: requested access to the resource is denied (docker push)

You’re logged in, but not allowed to push to that repository — usually the image isn’t tagged with your own username/organisation.

Exact message you may see denied: requested access to the resource is deniedrequested access to the resource is deniedAn image does not exist locally with the tag
Seen on: Docker

Meaning

docker push myapp tries docker.io/library/myapp, an official namespace you can’t write to. You must tag the image as yourname/myapp (or registry/org/app) first. It also happens when your account lacks write permission on the org repo.

Common causes

  • Image not tagged with your namespace
  • Logged in as a different user than the repo owner
  • No write permission on the organisation repository
  • Repository doesn’t exist and auto-creation isn’t allowed

⚡ Quick fix

  1. Tag with your namespace then push
  2. Check docker info for the logged-in user
  3. Ask an org admin for write access

Detailed fix by platform

Docker

  1. bash
    docker tag myapp:latest yourname/myapp:1.0
    docker push yourname/myapp:1.0

How to diagnose

  1. Tag — Does the name start with your user/org?
  2. User — Logged-in account
  3. Permission — Write access on the repo?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

401 — HTTP 401 Unauthorized (HTTP)401AADSTS50076 — Azure AD (Entra ID): AADSTS50076 / AADSTS50079 — multi-factor authentication required (Azure)AADSTS50076AADSTS50126 — AADSTS50126: Error validating credentials due to invalid username or password (Azure)AADSTS50126AADSTS700016 — Azure AD (Entra ID): AADSTS700016 Application not found in the directory (Azure)AADSTS700016Artifact Registry: Permission artifactregistry.repositories.uploadArtifacts denied — Docker push: denied: Permission "artifactregistry.repositories.uploadArtifacts" denied on resource "projects/p/locations/l/repositories/r" (Google Cloud / Firebase)Artifact Registry: Pe…Atlas: bad auth: Authentication failed — MongoServerError: bad auth : Authentication failed. (Atlas user / special characters in password) (MongoDB)Atlas: bad auth: Auth…auth/invalid-credential — Firebase Auth: auth/invalid-credential (auth/wrong-password, auth/user-not-found, auth/invalid-login-credentials) (Authentication)auth/invalid-credenti…Authentication failed — fatal: Authentication failed for 'https://github.com/x/y.git/' (Git)Authentication faileddenied

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.