This is a Docker image containing docker-credential-pass
from docker/docker-credential-helpers/.
As of Jan 2021 while this function works if I add the following to .docker/config.json
and do a docker login
I get an error:
{
"credsStore": "pass"
}
This happens even if I make a script called docker-credential-pass
in my $PATH
with the contents of the function below. The error I get can be seen in thus issue which was fixed in the version after 20.10.2. I'll revisit this image once I am on a fixed version of Docker.
function docker-credential-pass {
docker run -it --rm \
--name docker-credential-pass \
-v $HOME/.password-store:/root/.password-store \
rakheshster/docker-credential-pass:latest $@ ;
}
This pulls the image from DockerHub, calls it "docker-credential-pass" (the name doesn't matter), mounts the ".password-store" directory in your home folder into the container (so your pass
database can be accessed), and runs the container with the arguments to the function passed to it. Simple!
You can find it on DockerHub here.