Manjaro — Docker credential store configuration

Notes to self
Dec 23, 2018 · 1 min read

To enable secured registry credentials storage, follow these instructions (compiled from https://github.com/docker/docker-credential-helpers/issues/102):

  • install dependencies: sudo pacman -S gpg2 pass -y
  • create gpg2 key: gpg2 — gen-key
  • follow the instructions on screen, copy the generated key when done
  • generate pass key store: pass init <copied key>
  • insert docker’s password into the store : pass insert docker-credential-helpers/docker-pass-initialized-check
  • enter the ‘pass is initialized’ as the docker password
  • check with: pass show docker-credential-helpers/docker-pass-initialized-check
  • download docker-credential helper from https://github.com/docker/docker-credential-helpers/releases/download/v0.6.0/docker-credential-pass-v0.6.0-amd64.tar.gz (there may be a newer version, check at https://github.com/docker/docker-credential-helpers/releases/)
  • extract to /usr/bin/ or anywhere in $PATH
  • add this line to ~/.docker/config.json: “credsStore”: “pass”
  • test the access to the credential store with: docker-credential-pass list
  • the output should be {}
  • login to the registry with: docker login <registry url>
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store