Open jukefr opened 6 years ago
Is the build pulling a private image?
docker-credential-secretservice not installed or not available in PATH
This means that the credential helper for "secretservice" is not installed correctly. Please see https://docs.docker.com/engine/reference/commandline/login/#privileged-user-requirement for more details on credential stores.
Side note: presumably what you really want here is the credential helper for pass
... but again just making an assumption here.
I was pulling
FROM php:7.2-apache
so it should not even try to use any credentials
I never ran (or at least remember running) docker-login
at any point in time...
Thanks! Seems like it may be trying to load unnecessarily then.
I had the same issue when I switched from one private project where I was using gcloud to authenticate to another project where I'm using GITLAB_TOKEN
to authenticate. I'm not good at docker/k8s yet but I guess this config file is created by using $ kubectx my_context
, right? Maybe there should be a way to set clean context with kubectx
..
Any news on this getting fixed? I'm having to remove ~/.docker/config.json daily and sometime hourly.
Server Version: 19.03.12 Don't use docker-login or GCloud
This happened to me also. I removed the credHelpers
entries under ~/.docker/config.json
and it worked again. Thing is - I did not change anything so how did this start happening? I haven't used gcloud on this machine for a while.
Exactly the same behaviour as @rjurney Don't use docker-login am using gcloud but never with docker
It worked after removing ~/.docker/config.json
I commented out the credHelpers portion of ~/.docker/config.json; it worked. Like so: /,"credHelpers":{"gcr.io":"gcloud","us.gcr.io":"gcloud","eu.gcr.io":"gcloud","asia.gcr.io":"gcloud","staging-k8s.gcr.io":"gcloud","marketplace.gcr.io":"gcloud"} /
Worth noting, it was in the Docker-itself-main-folder, not the Docker subfolder in the program I was installing.
This turned out to be a $PATH
problem. gcloud
was installed but fell out of the path when Anaconda Python's conda init
command clobbered it in my ~/.profile
. I suspect this is the root of the problem for most people.
To resolve, find where the gcloud
executable is on your system.
sudo find / -iname gcloud
If it is found, gcloud is installed but isn't in your $PATH
variable. Did you just install new software on this computer? Some packages alter your ~/.profile
, ~/.bashrc
, ~/.bash_profile
or whatever file your non-bash shell uses to initialize your shell environment. Sometimes when they do this they accidentally remove directories from your $PATH
variable.
Check your $PATH
variable.
echo $PATH
Is the directory to gcloud
there? If not, add it. Note we include the existing $PATH
when we set a new one.
export PATH=$PATH:/path/to/gcloud
You can put this in your shell initialization file or figure out what broke your $PATH
variable by examining them. Look for something that sets your path without using the $PATH
variable to retain what is already there like this:
export PATH=/foo/bar:/use/local/foo/bar
This should fix the problem for most people :)
After I clicked "Reset to factory defaults" the problem never occurred again.
I ran into this problem when i removed all containers (sudo docker rm xxx
) and images (sudo docker rmi xxx
)
I was forced to uninstall everything (docker, docker-desktop, docker-compose, etc), remove conf files (ex: ~/.docker
) and reinstall everything again in order to get around this problem.
Expected behavior
Tried to run
docker-compose build xxx
on my Dockerfile. Expected an image build. I have used docker for a while and never had this problem.Actual behavior
Errored out and told me :
Steps to reproduce the behavior
I had never even touched the config file, didn't know there was one. Here is the content it generated automagically
And when I ran the build it errored.
Output of
docker version
:Output of
docker info
:fix :
simply deleted
~/.docker/config.json