Change socketdir from ~/.gnupg to /run/user/

vijai kumar vijaikumar.kanagarajan at gmail.com
Tue Jun 18 10:03:45 CEST 2019


Hi,

I am using gpg inside a docker container. By default, there is no
/run/user/ in the container so gpg defaults to ~/.gnupg as socket
directory. Is there a provision to change the socket directory later?
Now, I would like to create /run/user/$(id -u)/gnupg and use this as
the default socket directory. Is there a way to kill the existing agent
and relaunch it with the new socket directory?


Thanks,
Vijai Kumar K



More information about the Gnupg-users mailing list