From 713e87e780f1da7d4a9149c103338fd79855a574 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Wed, 16 Aug 2017 14:09:15 -0600 Subject: [PATCH] prefer `pass` backend if it is available Signed-off-by: Tycho Andersen --- cli/config/credentials/default_store_linux.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cli/config/credentials/default_store_linux.go b/cli/config/credentials/default_store_linux.go index 8e51385943..9b619c0279 100644 --- a/cli/config/credentials/default_store_linux.go +++ b/cli/config/credentials/default_store_linux.go @@ -1,5 +1,13 @@ package credentials +import ( + "github.com/docker/docker-credential-helpers/pass" +) + func defaultCredentialsStore() string { + if pass.PassInitialized { + return "pass" + } + return "secretservice" }