Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error getting credentials - err: docker-credential-gcloud resolves to executable in current #17943

Closed
cforce opened this issue Mar 27, 2023 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. windows issue/bug on Windows

Comments

@cforce
Copy link

cforce commented Mar 27, 2023

Bug description

Unable to start pull any container. Always terminates with below error message

Error: 1 error occurred:
        * error getting credentials - err: docker-credential-gcloud resolves to executable in current directory (.\docker-credential-gcloud), out: ``




### Operating system

Windows 10.0.19045 Build 19045

### Version

0.12.0

### Steps to reproduce

podman login docker.io/library/httpd
or 
podman pull docker.io/library/httpd

### Relevant log output

```shell
C:\WINDOWS\system32>docker pull docker.io/library/httpd
Using default tag: latest
latest: Pulling from library/httpd
f1f26f570256: Downloading [==========>                                        ]  6.466MB/31.41MB
a6b093ae1967: Verifying Checksum
6b400bbb27df: Download complete
d9833ead928a: Downloading [========================================>          ]  19.44MB/23.96MB
ace056404ed3: Download complete
^C
C:\WINDOWS\system32>podamn pull docker.io/library/httpd
'podamn' is not recognized as an internal or external command,
operable program or batch file.

C:\WINDOWS\system32>podman pull docker.io/library/httpd
Error: 1 error occurred:
        * error getting credentials - err: docker-credential-gcloud resolves to executable in current directory (.\docker-credential-gcloud), out: ``



C:\WINDOWS\system32>podman pull docker.io/library/httpd
Error: 1 error occurred:
        * error getting credentials - err: docker-credential-gcloud resolves to executable in current directory (.\docker-credential-gcloud), out: ``



C:\WINDOWS\system32>podman login docker.io/library/httpd
Username: fwcta
Password:
Login Succeeded!

C:\WINDOWS\system32>podman pull docker.io/library/httpd
Error: 1 error occurred:
        * error getting credentials - err: docker-credential-gcloud resolves to executable in current directory (.\docker-credential-gcloud), out: ``



C:\WINDOWS\system32>podman machine list
NAME                     VM TYPE     CREATED      LAST UP            CPUS        MEMORY      DISK SIZE
podman-machine-default*  wsl         4 hours ago  Currently running  16          3.011GB     918.6MB

C:\WINDOWS\system32>podman run quay.io/podman/hello
Error: 1 error occurred:
        * error getting credentials - err: docker-credential-gcloud resolves to executable in current directory (.\docker-credential-gcloud), out: ``

Additional context

No response

@cforce cforce added the kind/bug Categorizes issue or PR as related to a bug. label Mar 27, 2023
@benoitf benoitf transferred this issue from podman-desktop/podman-desktop Mar 27, 2023
@benoitf
Copy link
Contributor

benoitf commented Mar 27, 2023

transfering the issue to the podman repository as Podman Desktop is not involved there directly

@Luap99
Copy link
Member

Luap99 commented Mar 27, 2023

@cforce Do you have a $HOME/.docker/config.json or $HOME/.dockercfg file which configures this credential helper by any chance? Sounds like an invalid config file to me.

@mtrmac WDYT?

@Luap99 Luap99 added the windows issue/bug on Windows label Mar 27, 2023
@mtrmac
Copy link
Collaborator

mtrmac commented Mar 27, 2023

It’s valid to use that credential helper, overall. This is some variant of golang/go#43724 .

  • From a quick check of that situation, either the executable should not be in the current directory (i.e. removed from there if it is just a temporary copy), or that directory should be in PATH.
  • So, is docker-credential-gcloud supposed to be in C:\Windows\System32?
  • And what is the value of %PATH%?
  • What version of Go was used to compile Podman? In particular golang/go@3580ef9 might not yet be available.
  • As a workaround, I would expect cd to some other directory to make a difference.

@cforce
Copy link
Author

cforce commented Mar 31, 2023

{
  "auths": {
    "ghcr.io": {},
    "https://index.docker.io/v1/": {}
  },
  "credHelpers": {
    "asia.gcr.io": "gcloud",
    "eu.gcr.io": "gcloud",
    "gcr.io": "gcloud",
    "marketplace.gcr.io": "gcloud",
    "staging-k8s.gcr.io": "gcloud",
    "us.gcr.io": "gcloud"
  },
  "credsStore": "desktop"

@cforce
Copy link
Author

cforce commented Apr 1, 2023

choco install gcloudsdk
gcloud components update
gcloud components install  docker-credential-gcr

@cforce cforce closed this as completed Apr 1, 2023
@nichjones1 nichjones1 moved this from 📋 Backlog to ✅ Done in Podman Desktop Planning Apr 28, 2023
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Aug 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. windows issue/bug on Windows
Projects
Archived in project
Development

No branches or pull requests

4 participants