I'm trying to setup the docker credentials, and it requires to initialize the gpg
first.
Here are my steps:
root@remote_machine:~# gpg --gen-key
gpg (GnuPG) 2.2.4; Copyright (C) 2017 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Note: Use "gpg --full-generate-key" for a full featured key generation dialog.
GnuPG needs to construct a user ID to identify your key.
Real name: NeededUser
Email address: [email protected]
You selected this USER-ID:
"NeededUser <[email protected]>"
Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: agent_genkey failed: Required environment variable not set
Key generation failed: Required environment variable not set
root@remote_machine:~#
I have tried to set up the GPG_TTY variable, and it is set to /dev/pts/0
. What variables are necessary for GPG?