Forward gpg-agent to container

Phil Pennock gnupg-users at
Wed Jun 6 02:27:11 CEST 2018

On 2018-06-05 at 17:17 -0400, Phil Pennock wrote:
> Shell 2:
> $ docker run -it --rm -v /var/run/pdp.gnupg:/root/.gnupg/S.gpg-agent.ssh alpine
> / # chmod 0700 /root/.gnupg && chown root:root /root/.gnupg/S.gpg-agent
> / # apk update && apk add --no-cache gnupg

I apologise, I missed fixing one glitch in review before sending.

The correct command to invoke Docker here is:

  docker run -it --rm -v /var/run/pdp.gnupg:/root/.gnupg/S.gpg-agent alpine

Don't use the `.ssh` name, that speaks an entirely different protocol
and was a mental glitch when I first wrote the above, fixed in testing
but not repaired in the email.

The command-line if you're running on Linux should thus be (untested):

  docker run -it --rm -v $HOME/.gnupg/S.gpg-agent.extra:/root/.gnupg/S.gpg-agent alpine

Adjust as appropriate for other images.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 996 bytes
Desc: Digital signature
URL: <>

More information about the Gnupg-users mailing list