-
Notifications
You must be signed in to change notification settings - Fork 1.2k
build fails due to gpg: cannot open '/dev/tty' #526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 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. |
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
|
A recent gpg update causes gpg to fail when run in an environment without a tty (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913614#27). To mitigate this issue, run GPG in --batch mode as recommended here: docker-library/postgres#526 (comment)
Recent changes to gpg caused different interaction with the TTY. This causes issues when run in a Dockerfile. See also docker-library/postgres#526 The datafile target of the `gpg --verify` call was missing as well.
A recent gpg update causes gpg to fail when run in an environment without a tty (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913614#27). To mitigate this issue on Debian images, run gpg in --batch mode as recommended (docker-library/postgres#526 (comment)) Change-type: patch Signed-off-by: Trong Nghia Nguyen <nghiant2710@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
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.
The text was updated successfully, but these errors were encountered: