Skip to content

rakheshster/docker-credential-pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-credential-pass

Build & Push to DockerHub

What is this?

This is a Docker image containing docker-credential-pass from docker/docker-credential-helpers/.

Not working

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.

Bash function example

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!

DockerHub

You can find it on DockerHub here.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published