question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Try .cmd file extension suffix for credential helpers on Windows

See original GitHub issue

On Windows, gcloud auth configure-docker generates the following section in ~/.docker/config.json to specify that the cred helper is docker-credential-gcloud.

"credHelpers": {
    "gcr.io": "gcloud",
    "us.gcr.io": "gcloud",
    "eu.gcr.io": "gcloud",
    "asia.gcr.io": "gcloud",
    "staging-k8s.gcr.io": "gcloud"
},

The actual binary to run is docker-credential-gcloud.cmd. Without .cmd, Jib doesn’t seem able to run the binary.

[WARNING] The system does not have docker-credential-gcloud CLI
[WARNING]   Caused by: Cannot run program "docker-credential-gcloud": CreateProcess error=2, The system cannot find the file specified

docker-compose suffered from the same issue, and the workaround was to manually change gcloud to gcloud.cmd in ~/docker.config.json. OTOH, apparently, Docker CLI has been working without .cmd.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewmichiharacommented, Apr 13, 2020

Confirmed that both of those flags work as expected:

[INFO] Using credential helper docker-credential-gcloud for gcr.io/spokane/untitled
[INFO] Using credential helper docker-credential-gcloud.cmd for gcr.io/spokane/untitled
0reactions
matthewmichiharacommented, Apr 21, 2020

great, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

cmdkey | Microsoft Learn
Reference article for the cmdkey command, which creates, lists, and deletes stored user names and passwords or credentials.
Read more >
How to open a credential manager from CMD - Quora
CMD.exe is the executable file that opens the Command Prompt for use. Open the Windows search box and type 'CMD' and will give...
Read more >
How to add file extension to the files which do not have an ...
I want to add them .html file extension using command prompt at once. All the files which have not extension end with ^...
Read more >
windows - Establish a VPN connection in cmd - Stack Overflow
Now it will let you type the contents of the file, which should look ... can use rasdial.exe from command prompt to connect...
Read more >
msls - GNU ls directory utility for Microsoft Windows - U-Tools
ls is a console utility that lists information on Windows files. It is based on the GNU/Linux ... To invoke ls simply type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found