Closed
Description
Using version 11 (debian), when attempting to build the image I received the following error:
gpg: cannot open '/dev/tty': No such device or address
and the process was aborted.
I could solve it by passing the option --no-tty to the gpg command invocations on lines 31 and 67 of the Dockerfile.
Regards.
Activity
wglambert commentedon Nov 12, 2018
This is likely an issue with your local environment, It builds fine for us https://travis-ci.org/docker-library/postgres/builds/452492635
This is the only relevant search result for your specific error https://stackoverflow.com/questions/52900636/gpg-command-works-in-shell-but-not-in-go-exec-command
It's possibly related to docker-library/official-images#4252
I recommend using the images we officially build/publish; for further assistance debugging your local environment the best I can recommend is trying the Docker Community Forums, the Docker Community Slack, or Stack Overflow.
wglambert commentedon Nov 14, 2018
So this is an issue with a recent gpg update and we are encountering it, we filed a bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913614#27
And we've opened a PR on it #527
From the comment in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913614#27
Invoke gpg with --batch
Fix calls to gpg
debianImages: Invoke gpg with --batch
Fixed broken build caused by missing TTY