docker / docker/docker-credential-helpers
docker build triggers useless gpg passphrase dialog
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 195
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 5
Description
I'm on linux (working with docker engine). I started fiddling with docker-credential-pass in order to be able to do this:
aws ecr-public get-login-password --region us-east-1 --profile myprofile \
| docker login --username AWS --password-stdin public.ecr.aws/z7f783hdj
ok that's now working. but...
Problem
Now everytime I do
docker build --progress=plain `#--no-cache` -t=myimage -f Dockerfile_great .
I first get a useless gpg diaglog window asking for my passphrase:
Passphrase
Please enter the passphrase to unlock the OpenPGP secret key
I just hit Cancel and then (and only then) the actual build starts.
How do I get rid of this useless dialog. Why is it coming??
My details:
# cat ~/.docker/config.json # shows
{
"auths": {
"public.ecr.aws": {}
},
"credsStore": "desktop",
"credHelpers": {
"public.ecr.aws/z7f783hdj": "pass"
}
}
Thanks for tipps and suggestions.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported ~/.docker/config.json, especially the desktop credsStore and pass credential helper entry, and reproduce the behavior with the shown docker build command after the ECR login. Trace which credential-helper entry is invoked during the build; done means the build proceeds without an unnecessary GPG passphrase dialog.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, docker, go, linux
- Domain
- authentication, devops, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100