Forward gpg-agent to container

Andrew Gallagher andrewg at andrewg.com
Tue Jun 5 08:56:54 CEST 2018


> On 4 Jun 2018, at 19:44, Benjamin Kircher <benjamin.kircher at gmail.com> wrote:
> 
> Now inside the container I can see my socket
> 
>  # ls -l /gpg-agent 
>  srwx------ 1 root root 0 Jun  4 17:45 /gpg-agent
> 
> From here on, I am kind of stuck. I fail to somehow make gpg-agent inside the container “use” the extra-socket. Here is what I am doing:

This sounds overly complicated. Once you have the extra socket visible inside the container, it should be sufficient to set the environment variable GPG_AGENT_SOCK. You don’t need to start an extra agent inside the container. 

Andrew



More information about the Gnupg-users mailing list