Change socketdir from ~/.gnupg to /run/user/
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Jun 25 17:37:07 CEST 2019
On Tue 2019-06-18 04:03:45 -0400, vijai kumar via Gnupg-users wrote:
> 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?
Ideally, you'd ensure that /run/user/$(id -u) is created during the
session launch within the docker container, so that it's present from
the beginning.
If you already have an agent running from before /run/user/$(id -u)
exists, you can kill it with a SIGTERM. A new agent will be launched
appropriately using /run/user/$(id -u) automatically when it is needed.
all the best,
--dkg
More information about the Gnupg-users
mailing list