I'm trying to set up amazon-ecr-credential-helper so that I can have an ansible script automatically push / pull to my aws ecr docker repository, but the instructions for installing it seem very vague.
Since I already have Docker installed I tried cloning the repo and running make docker
. It says that outputs the binary "to local directory." Which appeared to be true, I ended up with ./bin/local/docker-credential-ecr-login
being built. So I tried adding that to my path:
.bash_profile
export PATH="$HOME/anaconda3/bin:$HOME/projects/amazon-ecr-credential-helper/bin:$PATH"
And restarting my terminal, but when I try to do a docker push I get the error no basic auth credentials
.
And if I try to do a docker-compose build
I get the error Credentials store error: StoreError('docker-credential-ecr-login not installed or not available in PATH',)
.