Skip to content

Instantly share code, notes, and snippets.

@christian-korneck
Created March 13, 2020 23:15
Show Gist options
  • Save christian-korneck/4862c0bf47789b7b15e8b1d1b962d495 to your computer and use it in GitHub Desktop.
Save christian-korneck/4862c0bf47789b7b15e8b1d1b962d495 to your computer and use it in GitHub Desktop.
get docker desktop credentials
#!/bin/bash
docker-credential-desktop list | \
jq -r 'to_entries[].key' | \
while read; do
docker-credential-desktop get <<<"$REPLY";
done
@christian-korneck
Copy link
Author

tested on Docker Desktop for Mac 2.2.0.4

expected output:

{"ServerURL":"https://index.docker.io/v1/","Username":"myuser","Secret":"00000000-0000-0000-0000-000000000000"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment