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

Make note of docker-credential helper #4

Open
so0k opened this issue Jul 6, 2016 · 0 comments
Open

Make note of docker-credential helper #4

so0k opened this issue Jul 6, 2016 · 0 comments

Comments

@so0k
Copy link
Owner

so0k commented Jul 6, 2016

In the instructions, after docker login, we should make note of the following:

cat ~/.docker/config.json
jq -r .auths[\"https://index.docker.io/v1/\"].auth ~/.docker/config.json | openssl base64 -d ; echo

for OSX, it is safer to do the following:

curl -Lo osxkeychain.tar.gz https://github.com/docker/docker-credential-helpers/releases/download/v0.3.0/docker-credential-osxkeychain-v0.3.0-amd64.tar.gz
tar -xf osxkeychain.tar.gz
ln -s $PWD/docker-credential-osxkeychain /usr/local/bin/docker-credential-osxkeychain

Change ~/.docker/config.json to tell docker to use credential store:

{
    "credsStore": "osxkeychain"
}

Tip, the way docker gets the credentials is:

echo "https://index.docker.io/v1/" | docker-credential-osxkeychain get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant