docker / docker-credential-helpers

Programs to keep Docker login credentials safe by storing in platform keystores
MIT License
1.05k stars 166 forks source link

"pass": executable file not found in $PATH: #296

Open chain710 opened 1 year ago

chain710 commented 1 year ago

my docker config look like this

cat ~/.docker/config.json
{
        "credsStore": "pass",
        "auths": {}
}

docker-credential-pass exists in following directories:

dockerd /proc/N/environ is

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

docker login error

Error saving credentials: error storing credentials - err: exit status 1, out: `pass not initialized: exec: "pass": executable file not found in $PATH:`
yaohwu commented 5 months ago

same happened to me.

using centos 7 which is without pass package actually

erich-wittenbeck commented 5 months ago

Also using Debian (on WSL2):

I found that the 'executable file not found in $PATH' message also appears, when the executable is not yet executable.

I.e. you could try sudo chmod +x docker-credential-pass and see, if that resolves the issue.