-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need plain text credentials in my config.json, how do I disable this if it is enabled? #95
Comments
@red8888 Reading https://docs.docker.com/engine/reference/commandline/login/#credentials-store I think explicitely putting an empty value in the |
Not working, docker login put wincred in empty place. |
This does not work for Windows Docker Enterprise 18.09.5 |
I don't know how one would translate this into a Windows equivalent but LinuxKit calls the credhelper itself to extract the values: https://github.com/linuxkit/linuxkit/blob/master/scripts/push-manifest.sh#L52...L54 If you could replicate that on Windows (In powershell perhaps?) then you could write your own |
Ok, seems like manually copying wincred into the docker installation folder fixes things. 18.09.2 worked just fine. |
Hello guys. I'm having the same issue on ubuntu 18. In
Is there a way to disable this? I want my plain text back again. Thanks |
Also keen to get plain text only credentials. I'm connecting to AWS ECR so the credentials are only valid for a few hours anyway. |
If you have WSL enabled you can use |
I just got the auth hash after setting the |
The issue could be here: That it's getting the default storage when the value from the configuration file is empty. The default storage is the one from the platform even when the user specifies empty. and here it creates the "native" credential store instead of the "file" one as we want: but according to these function, if we set the
{
"auths": {},
"HttpHeaders": {
"User-Agent": "Docker-Client/19.03.8 (windows)"
},
"credsStore": "wincred",
"credHelpers": {
"MY_PRIVATE_REPOSITORY_URL": ""
}
} |
The workaround doesn't fully work as Docker decides to wipe out my config file and remove all the We are starting to consider migrating to Podman and Buildah, it's just incredible that we don't get any answer for these bugs reported for several years, with workarounds that need to be changed and investigated in every Docker update.... |
Docker team, any updates? I have the same problem and no workarounds work... |
That's fairly annoying, to be honest. I feel like it's pretty standard to have your CD runner log into your docker registry while headless, and that would fail if target machine has gnome-keyring (rather |
My WorkaroundHiding
Base64
|
apt remove golang-docker-credential-helpers worked for me This uninstalls This means I cannot use docker-compose, but I would rather start my containers with a normal shell script than it popping up GUI based key managers all the time Running: ubuntu 18.04
|
Just encountered this issue on Mac/Monterey with latest Docker desktop 4.5.0(74594). The workaround is:
|
I tried just temporarily moving them to a new name (they were actually symlinks in /usr/local/bin, renamed the symlinks) and renaming them back after logging in and so far so good. |
Here's the solution I came up with - a python script that handles the store, get commands docker-credential-plaintext.py
Example usage:
|
On windows it defaults to using this provider so when I run docker login sensitive info isn't saved to the config.json. This is good but I need to disable it, I need these creds to be plain text to support a specific service.
This is very frustrating because I can't find any info on how to disable wincred (or even uninstall it). There has to be a way to turn it off temporarily so I can generate a config.json with my creds in plain text.
The text was updated successfully, but these errors were encountered: