denied: Unauthenticated request. Unauthenticated requests do not have permission

1 개요[ | ]

denied: Unauthenticated request. Unauthenticated requests do not have permission
Console
Copy
$ docker push asia-northeast3-docker.pkg.dev/hello-project-123/repo1/image1
Using default tag: latest
The push refers to repository [asia-northeast3-docker.pkg.dev/hello-project-123/repo1/image1]
f836d99f1feb: Preparing 
68cf75082ebb: Preparing 
90a42b1d6fb3: Preparing 
c9b39419f641: Preparing 
211bd86efa05: Preparing 
7cc4fe6ec513: Waiting 
8b296f486960: Waiting 
denied: Unauthenticated request. Unauthenticated requests do not have permission "artifactregistry.repositories.uploadArtifacts" on resource "projects/hello-project-123/locations/asia-northeast3/repositories/repo1" (or it may not exist)
Console
Copy
$ gcloud auth configure-docker asia-northeast3-docker.pkg.dev
WARNING: Your config file at [/root/.docker/config.json] contains these credential helper entries:

{
  "credHelpers": {
    "asia.gcr.io": "gcloud"
  }
}
Adding credentials for: asia-northeast3-docker.pkg.dev
After update, the following will be written to your Docker config file located at [/root/.docker/config.json]:
 {
  "credHelpers": {
    "asia.gcr.io": "gcloud",
    "asia-northeast3-docker.pkg.dev": "gcloud"
  }
}

Do you want to continue (Y/n)?  y

Docker configuration file updated.
Console
Copy
$ docker push asia-northeast3-docker.pkg.dev/hello-project-123/repo1/image1
Using default tag: latest
The push refers to repository [asia-northeast3-docker.pkg.dev/hello-project-123/repo1/image1
f836d99f1feb: Pushed 
68cf75082ebb: Pushed 
90a42b1d6fb3: Pushed 
c9b39419f641: Pushed 
211bd86efa05: Pushed 
7cc4fe6ec513: Pushed 
8b296f486960: Pushed 
latest: digest: sha256:02f87075b9e1ca95081117e2d5575bc30ebf65308479dcb1739f706fa3c243cf size: 1785

2 같이 보기[ | ]