I am on Ubuntu 24.04.1 LTS.
logged in as a user that is in group ‘docker’
The command ‘docker login -u DOCKERID’ is successful.
config.json has only a few lines:
As you can see, pass is used to store credentials.
‘pass ls’ after the ‘docker login’ shows:
Password Store
└── docker-credential-helpers
└── aHR0cHM6Ly9pbmRleC5kb2NrZXIuaW8vdjEv
└── DOCKERID
so all looks fine.
Then a docker build with a valid docker file (tested without docker login and works fine) gives the error:
#2 [internal] load metadata for docker.io/library/ubuntu:24.04
#2 ERROR: error getting credentials - err: exit status 1, out: `exit status 2: gpg: public key decryption failed: No such file or directory
gpg: decryption failed: No such file or directory
I ran an Ubuntu 24.04 virtual machine. Configured Docker CE 27.0.2 and it works. How exactly did you install Docker CE? And what did you do to configure pass?
What you see in the output of pass ls is just a file hierarchy. The GPG file should be here: