Open Pfriasf opened 3 years ago
+Jon Johnson @.***>
On Mon, Jul 5, 2021 at 4:46 AM 'Pedro Frias' via gcr-github < @.***> wrote:
I am trying to create my own image to use inside "Container optimized OS".
FROM google/cloud-sdk:alpine as builder1 RUN gcloud components install docker-credential-gcr --quietRUN gcloud components updateRUN docker-credential-gcr version
FROM docker/compose COPY --from=builder1 /google-cloud-sdk/bin/* /usr/local/bin/RUN docker-credential-gcr configure-dockerCMD docker-compose
I run into the problem that it always installs version 1.5.0 which does not let me add records for artifact registries.
Any idea how to install the correct version of docker-credential-gcr?
thanks in advance
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/docker-credential-gcr/issues/90, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFASKFBHLJAZE5MP622G4CTTWGLPZANCNFSM472SDZ4Q .
-- You received this message because you are subscribed to the Google Groups "gcr-github" group. To unsubscribe from this group and stop receiving emails from it, send an email to @.*** To view this discussion on the web visit https://groups.google.com/a/google.com/d/msgid/gcr-github/GoogleCloudPlatform/docker-credential-gcr/issues/90%40github.com https://groups.google.com/a/google.com/d/msgid/gcr-github/GoogleCloudPlatform/docker-credential-gcr/issues/90%40github.com?utm_medium=email&utm_source=footer .
My recollection might be fuzzy here, but I believe we originally distributed docker-credential-gcr
through gcloud prior to the docker-credential-gcloud
credential helper's existence. Given that you can just use gcloud for this, installing docker-credential-gcr
through gcloud doesn't make as much sense.
You should be able to achieve the same thing with gcloud auth configure-docker
:
$ gcloud auth configure-docker --help
NAME
gcloud auth configure-docker - register gcloud as a Docker credential
helper
SYNOPSIS
gcloud auth configure-docker [REGISTRIES] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
gcloud auth configure-docker adds the Docker credHelper entry to Docker's
configuration file, or creates the file if it doesn't exist. This will
register gcloud as the credential helper for all Google-supported Docker
registries. If the Docker configuration already contains a credHelper
entry, it will be overwritten.
Note, docker and gcloud need to be on the same system PATH to work
correctly.
For more details on Docker credential helpers, see
https://docs.docker.com/engine/reference/commandline/login/#credential-helpers.
For more details on the Google Container Registry's Docker credential
helper, see https://github.com/GoogleCloudPlatform/docker-credential-gcr.
POSITIONAL ARGUMENTS
[REGISTRIES]
The comma-separated list of registries to configure the credential
helper for.
I am trying to create my own image to use inside "Container optimized OS".
I run into the problem that it always installs version 1.5.0 which does not let me add records for artifact registries.
Any idea how to install the correct version of docker-credential-gcr?
thanks in advance