Install required tools first
$ # ubuntu
$ sudo apt-get install -y git gnupg pass pinentry-curses
$ # macos
$ brew install git gnupg2 docker-credential-helper pass pinentry-mac
There is no PPA for docker-credential-helper
on Ubuntu, so install that directly