D
D
DromHour2020-03-02 20:25:29
Docker
DromHour, 2020-03-02 20:25:29

Exporting Docker container to gcr from Gcloud VM instance?

Tried the following:

docker tag dromhour/node-app:V1 gcr.io/project-yuriy/node-hello-world-app
docker push gcr.io/project-yuriy/node-hello-world-app


Output error:
unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentia
ls. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/a...
authentication


I tried following the instructions in the link:
gcloud auth configure-docker
WARNING: `docker-credential-gcloud` not in system PATH.
gcloud's Docker credential helper can be configured but it will not work until this is corrected.
gcloud credential helpers already registered correctly.


Actually, there are still not enough rights. I can’t install docker-credential-gcloud through gcloud, in response it says that gcloud is installed by another manager, install through it. Gcloud in the VM is initially installed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2020-03-05
@chupasaurus

You need to download the helper assembly from here , unpack and put it in/usr/local/bin/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question