I was trying to download a project file from Google cloud sdk environment and got a docker command from Google cloud support.
I fallowed these instructions:
[![enter image description here][1]][1]
I was able to run almost all the commands, but the docker cp command encountered an error "A required privilege is not held by the client."
Here's what I did:
C:\Users\*\AppData\Local\Google\Cloud SDK>gcloud auth login
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth---
You are now logged in as [*@gmail.com].
Your current project is [nodejs-301100]. You can change this setting by running:
$ gcloud config set project PROJECT_ID
C:\Users\*\AppData\Local\Google\Cloud SDK>gcloud auth configure-docker
WARNING: Your config file at [C:\Users\*\.docker\config.json] contains these credential helper entries:
{
"credHelpers": {
"gcr.io": "gcloud",
"us.gcr.io": "gcloud",
"eu.gcr.io": "gcloud",
"asia.gcr.io": "gcloud",
"staging-k8s.gcr.io": "gcloud",
"marketplace.gcr.io": "gcloud"
}
}
Adding credentials for all GCR repositories.
WARNING: A long list of credential helpers may cause delays running 'docker build'. We recommend passing the registry name to configure only the registry you are using.
gcloud credential helpers already registered correctly.
C:\Users\*\AppData\Local\Google\Cloud SDK>docker pull asia.gcr.io/nodejs 301100/appengine/default.20210108t204554:latest
latest: Pulling from nodejs-301100/appengine/default.20210108t204554
Digest: sha256:a1bf8c73e54a357b9aa3d251e73deb0f8ffba4eecef9c6767efa666f3781c600
Status: Image is up to date for asia.gcr.io/nodejs-301100/appengine/default.20210108t204554:latest
asia.gcr.io/nodejs-301100/appengine/default.20210108t204554:latest
C:\Users\*\AppData\Local\Google\Cloud SDK>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
asia.gcr.io/nodejs-301100/appengine/default.20210108t204554 latest b0c9100e95b4 4 weeks ago 741MB
C:\Users\*\AppData\Local\Google\Cloud SDK>docker run -d b0c9100e95b4
34600f7b8b20238c816a53c8dd08e19fcc0496628139d9c9251e7ad5683ef837
C:\Users\*\AppData\Local\Google\Cloud SDK>docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
34600f7b8b20 b0c9100e95b4 "/bin/sh -c 'npm sta…" 41 seconds ago Up 40 seconds angry_einstein
77bcc0536ac9 b0c9100e95b4 "/bin/sh -c 'npm sta…" 20 minutes ago Up 20 minutes goofy_feistel
C:\Users\*\AppData\Local\Google\Cloud SDK>docker exec -it goofy_feistel pwd
/app
C:\Users\*\AppData\Local\Google\Cloud SDK>docker cp goofy_feistel:app/ google-cloud-sdk
symlink ..\ejs\bin\cli.js C:\Users\*\AppData\Local\Google\Cloud SDK\google-cloud sdk\app\node_modules\.bin\ejs: A required privilege is not held by the client.
What should I do?