Manjaro — Docker credential store configuration

  • 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>

--

--

Random notes to share and mostly to remember

Love podcasts or audiobooks? Learn on the go with our new app.

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
Notes to self

Notes to self

Random notes to share and mostly to remember