-
Notifications
You must be signed in to change notification settings - Fork 585
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 on WSL 2 #416
Comments
Instead of using the This shouldn't require you to use an elevated powershell instance. Does this solve your problem? |
Out of curiosity, are you running a guest using WSL with a docker container inside? VMception? |
no, Hyper-V, WSL 2 with docker installed in WSL 2. I have tried to convert existing WSL deployments on 2 different systems now and both required an elevated powershell session to successfully convert. Once converted, the "service" commands worked fine within WSL 2. |
@purplefeetguy it seems like your original issue is resolved so I'll close out this issue. :) If it isn't, please re-open! |
This only worked for me using an elevated powershell session:
PS C:\WINDOWS\system32> wsl --list --verbose
NAME STATE VERSION
PS C:\WINDOWS\system32>
└──☻ sudo service docker status
└──☻ sudo service docker start
└──☻ sudo service docker status
└──☻ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete Digest: sha256:41a65640635299bab090f783209c1e3a3f11934cf7756b09cb2f1e02147c6ed8
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: