Open willburden opened 2 years ago
Hi @willburden , You can use "docker login" command. Just you need to add the current user to the docker group so it wont have any permission errors by running the below one line.
sudo usermod -aG docker $USER
then close and open the terminal
/assign
I'm not overly familiar with this repo, but I've just wrestled with docker-credential-pass for an hour and now I've figured out the problem it seems quite fixable.
The error is this:
Error saving credentials: error storing credentials - err: exit status 1, out: pass store is uninitialized
.Here's how this problem can occur:
pass init
, creating the~/.password-store
directory.sudo docker login
(not using sudo would cause permission errors).The cause is that, in some configurations of Linux, the root user has a different
~
(home directory) to the normal user. This means docker-credential-pass is looking in the wrong place for the pass store; on my machine I believe it was looking in/root/.password-store
. I fixed this on my own machine by editing/etc/sudoers
so that the root user keeps the $HOME env variable of the normal user, but it seems that the program could be edited in some way to avoid this requirement altogether, or at least to provide a more useful error message. If I was familiar with Go I would attempt to make this change myself.Note: this may be the cause of issue #140 , I'm not sure.