One day you may need to run a GPG 2.x inside a Docker container.
In Ubuntu Artful the gpg-agent creates its agent-socket under /run/user, instead
of $GNUPGHOME/ which by default is ~/.gnupg.
You can check what path does your gpg agent-socket use by running:
$ gpgconf --list-dirs | grep agent-socket