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

Problem to start Docker Desktop #14311

Open
gen973 opened this issue Sep 12, 2024 · 12 comments
Open

Problem to start Docker Desktop #14311

gen973 opened this issue Sep 12, 2024 · 12 comments

Comments

@gen973
Copy link

gen973 commented Sep 12, 2024

Description

When I excecute Docker Desktop I get next error and doesn´t start: _"deploying WSL2 distributions
ensuring main distro is deployed: checking if main distro is up to date: checking main distro bootstrap version: getting main distro bootstrap version: open \wsl$\docker-desktop\etc\wsl_bootstrap_version: The network name cannot be found.
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found
."

Reproduce

When I excecute Docker Desktop I get next error and doesn´t start: _"deploying WSL2 distributions
ensuring main distro is deployed: checking if main distro is up to date: checking main distro bootstrap version: getting main distro bootstrap version: open \wsl$\docker-desktop\etc\wsl_bootstrap_version: The network name cannot be found.
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found
."

Expected behavior

I need to start Docker Desktop without problems

docker version

Client:
 Version:           27.2.0
 API version:       1.47
 Go version:        go1.21.13
 Git commit:        3ab4256
 Built:             Tue Aug 27 14:17:17 2024
 OS/Arch:           windows/amd64
 Context:           desktop-linux
error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.47/version": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.

docker info

Client:
 Version:    27.2.0
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.16.2-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.2-desktop.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.34
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Alpha) (Docker Inc.)
    Version:  v0.0.15
    Path:     C:\Program Files\Docker\cli-plugins\docker-desktop.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.25
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.3.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.13.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
ERROR: error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.47/info": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
errors pretty printing info

Diagnostics ID

127634DF-074D-4BAA-8552-812156059988/20240912082501

Additional Info

I have reinstall WSL and Docker Desktop without result.

@gen973
Copy link
Author

gen973 commented Sep 12, 2024

I have tried diferent things and I´m sure is a permissions problem. I have given administrator permissions to the user with which I run Docker Desktop and it is work. But I want to run Docker Desktop with a non- administrator user. I have verified that the user belongs to the docker-users group but if I remove the local administrator privileges from the machine Docker Desktop does not start. I hope this information can help with the resolution. Thank you very much.

@ibaraki-douji
Copy link

ibaraki-douji commented Sep 16, 2024

Hi, i got the same issue (the docker version command result is the same as gen973), tho on my end it was not permission related (or not the same as you since starting Docker Desktop as an Administrator didn't change anything), tho after disabling all the additional distros in the WSL Integration, it "fixed" the error. (I still have the default WSL integration checked)

For the image below as an example, if i enable GitlabCI it will fail to restart the engine. (i don't enable the Ubuntu since it's the default, and yes i have access to the CLI inside the Ubuntu distro)
image

@gen973
Copy link
Author

gen973 commented Sep 16, 2024

I don't understand anything. If I check the configuration in the resources/WSL integration section I see the following:
image
But if I check the instructions I can see that they are WSL 2
image

@ibaraki-douji
Copy link

ibaraki-douji commented Sep 16, 2024

could you try to start the Ubuntu distro before docker desktop or just disable the default integration ?
maybe it's docker desktop trying to start the distro but for a reason cannot do it and start sending errors

if it's not that then ye i don't have another clue on what it could be.

@gen973
Copy link
Author

gen973 commented Sep 16, 2024

Same result:

image

If I disable Default Integration no changes

@ibaraki-douji
Copy link

then that's very strange, that's also possible that we don't have the same issue, i'm currently out of ideas so i will let the docker team continue the research for this one.

@gen973
Copy link
Author

gen973 commented Sep 17, 2024

Thank you for your help. I have update to 4.34.2 (167172) version without results.

@lalit-ALDS
Copy link

any solution
Screenshot 2024-09-18 092512

@ibaraki-douji
Copy link

@lalit-ALDS you don't have the same issue, you are missing some Windows Features to enable WSL on your machine.

You can follow thoses links to install WSL2 on your machine :

https://docs.docker.com/desktop/wsl/
https://learn.microsoft.com/en-us/windows/wsl/install

@Loomman1
Copy link

It helped me:
1)Stop Docker Desktop
2)Run the following command in your terminal: wsl --unregister docker-desktop
3)Run Docker Desktop again as administrator

@gen973
Copy link
Author

gen973 commented Sep 23, 2024

Thank you for your answer but It works for me only if I don´t restart Docker Desktop. If I stop and quit, when I open application again, I get the same error.

@gen973
Copy link
Author

gen973 commented Sep 24, 2024

Hello again. I have continued testing and reading a lot of information about this issue and I think I now have a clear idea of ​​the reason for the error. Looking at the dates when it started to fail and reading people on a forum with the same problem, I decided to completely uninstall Docker Desktop and install several previous versions until I found one that worked. I can confirm that the last version in which the execution of Docker Desktop works correctly from a user profile without administrator permissions is 4.31.1. Since this version this functionality has stopped working. I hope they take this into account and fix this bug.

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

No branches or pull requests

5 participants