Skip to content
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

Build fails with credentials errors when logged in via SSH on WSL2/Windows #56

Closed
jasalt opened this issue Sep 13, 2022 · 2 comments
Closed

Comments

@jasalt
Copy link

jasalt commented Sep 13, 2022

Had trouble controlling Docker Compose remotely via SSH on Win/WSL2 while there were no errors with regular Windows desktop session. Seems like logging in via SSH messes up the Docker Desktop's credit store access with WSL somehow where docker compose --profile hlky up --build, docker compose --profile auto restart or just docker login would end with:

Error saving credentials: error storing credentials - err: exit status 1, out: `A specified logon session does not exist. It may already have been terminated.`

Got it to work by forcing plain text auth creds storage by removing line with "credStore" from ~/.docker/config.json (in WSL) and then docker login and docker compose commands worked. Used a read-only access token made on Docker Hub site for safety as a password. Might need to be redone after reboot as config.json file is controlled by Docker Desktop app where some seem to have set that file read-only to keep it from changing with some possible side effects.

There were some open issues on Docker and Docker Compose issue trackers with this workaround but leaving this as a note here, could maybe moved to wiki.

@AbdBarho
Copy link
Owner

@jasalt Thanks! added to the FAQ.

Do you have links to the issues in Docker or Docker compose issue trackers? maybe we could add them here for reference

@jasalt
Copy link
Author

jasalt commented Sep 13, 2022

Few more or less related issues:

docker/compose#7273
docker/cli#2682
docker/for-win#9061
docker/for-win#11261
docker/for-win#12888

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants