-
Notifications
You must be signed in to change notification settings - Fork 290
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
docker-compose up
fails in WSL 2 environment
#12355
Comments
Update: something I didn't mention above was that I moved my WSL instance to my D drive (because my C drive is pretty full). I thought maybe that could cause problems so I just tried a fresh Ubuntu 20.04 install on the C drive and it seems to be working fine there. This is a temporary workaround which is fine for now but I would like the issue to be fixed still. Thanks :) |
i have the same issue in Ubuntu 18.04, tried to reinstall both docker and the Ubuntu but still getting the same error. |
same issue here, Im trying to run docker-compose up for this project. |
looks like they had same issue with mac. |
Removing the file worked for me: |
I did this, and effect me
|
In my WSL2 Debian, I disable windows path, so I add docker-credential-desktop.exe path to DockerResourcesBin="/mnt/c/Program Files/Docker/Docker/resources/bin"
export PATH=$PATH:$DockerResourcesBin and after run |
I have the same issue. I have tried removing the .docker/config.json, commenting out the credsStore attribute, and also adjusting the PATH as suggested above. None of them worked. The only thing that worked was putting the underscore ("_") in front of the credsStore attribute. |
This worked for me. In ~/.docker/config.json, change |
sudo ln -s /mnt/c/Program\ Files/Docker/Docker/resources/bin/docker-credential-desktop.exe /usr/bin/docker-credential-desktop.exe does this help? source: #6652 (comment) |
I have the same issue. All the three following solutions mentioned above remove the
All the three solutions creates another issue, when trying to pull any image I get the following error: ERROR: pull access denied, repository does not exist or may require 'docker login': denied: requested access to the resource is denied |
This was working for me and I decided to do the factory reset to use Buildkit instead, then I started getting this issue. The solution in #6652 (comment) worked perfectly fine for me, but this workaround is pretty un-intuitive. I hope once this moves into stable, this is addressed (what makes this even more un-intuitive is that none of the images are private, they are all from Docker Hub public) |
I tried every potential solution above, and not of them work for me, except for adding "_" to credsStore in this file ~/.docker/config.json: {"_credsStore":"desktop.exe"} |
It happens when I have my fedora native Linux on the same computer of Windows 10 and pointed out same HOME folder both on Windows and Linux |
I had a similar issue after switching from edge to stable, but my error was very different. The only reason I found this thread was I noticed it would hang after looking for the auth entry. Changing the credsStore key fixed my issue but my original error message was this:
|
just a hint for anyone looking at it: this may be wsl2 issue, not docker issue. at work we have a front-end ui library project with storybook project used. when i launch it with configuration that hadn't had anything specific to wsl it crashes inside wsl2 complaining about cmd.exe not being available. No docker is used there at all! So I think wsl2 may have an issue that causes some popular way of checking OS detecting Windows instead of Linux, so it follows Windows-related logic and it crashes here and there. Edit: after looking inside |
This worked for me! |
For me this error was caused by wrong permissions - execute flag was not set on
No need to remove |
this works please try this |
@Mordred, it looks you are right that the reason is permissions, because it works with I don't have wsl.conf and all files /mnt/c/Program Files/Docker/Docker/resources/bin/*.exe have |
@jpolania |
I needed both things: First
(removing it seems to work too) And ensure |
thank you very much
Abel Paz <notifications@github.com>, 2 Şub 2021 Sal, 16:09 tarihinde şunu
yazdı:
… I needed both things:
First ~/.docker/config.json with:
{"_credsStore":"desktop.exe"}
*(removing it seems to work too)*
And ensure /etc/wsl.conf has the right permissions *(if you don't need
it, try removing it to default everything and it should work)*.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/docker/compose/issues/7495#issuecomment-771623287>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQY6JDLVPMVHONTGCJGIKHLS472SJANCNFSM4NQ3EXPQ>
.
|
This issue seems to be with the execution of the cred store: Setting the Windows APPDATA to %USERPROFILE%\AppData did not work but I am guessing the solution is some where in that direction. |
Hi, I'm with this error too. What is interesting is because this error only happens on Visual Studio Code(vscode) terminal (at least for me). When I try to run docker-compose up with zsh terminal integrated with vscode, I got this error. Have anyone with this same situation? Or if someone who are with this error, could test if it occurs only in vscode too? |
make sure that your current user is part of the docker group by doing the below: |
I had the same issue. Resolved on using 'sudo' |
I had the same problem as you after the migration moved my WSL instance to another hard drive. |
Tested this more than I'd like to admit today and found that either |
FWIW the issue title should perhaps be changed to |
I had the same issue some days ago and renaming What I did not like in this issue: the error messages are misleading an did not direct me towards the "config.json" file. |
I have the same issue although, my conditions are a little bit different:
It seems that compose has trouble finding the binary required to auth to a registry. |
This worked for me, thanks |
it works if I pull the image first, then |
This worked for me, no need of using sudo after, just |
Issues go stale after 90 days of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
This is still happening for me - I'm having to run |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Description of the issue
Whenever I run
docker-compose up
in my WSL 2 environment, it fails with the error:It's complaining that docker-credential-desktop is not available, however in the same session I can run
docker-credential-desktop -h
and get the help text output.I am also able to use
docker run
to build and run my container without any problems.Context information (for bug reports)
Output of
docker-compose version
Output of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Steps to reproduce the issue
docker-compose up
on itObserved result
The above error message
Expected result
The container is built and run
Stacktrace / full error message
Additional information
OS version: Windows 10 version 2004 build 19041.264
WSL 2 distro: Ubuntu 20.04
The way I got my setup was:
The text was updated successfully, but these errors were encountered: