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

minikube start in WSL2 error : /lib/systemd/system/docker.service is masked #20414

Open
MoonLighting7 opened this issue Feb 16, 2025 · 0 comments

Comments

@MoonLighting7
Copy link

What Happened?

after Input minikube start command in WSL2 ,it prompt /lib/systemd/system/docker.service is masked . and I inspect in container this file is not exist.

Attach the log file

-[Install]
-WantedBy=multi-user.target
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
Failed to enable unit: Unit file /lib/systemd/system/docker.service is masked.

❌ Exiting due to RT_DOCKER_RESTART: Failed to start host: creating host: create: provisioning: ssh command error:
command : sudo diff -u /lib/systemd/system/docker.service /lib/systemd/system/docker.service.new || { sudo mv /lib/systemd/system/docker.service.new /lib/systemd/system/docker.service; sudo systemctl -f daemon-reload && sudo systemctl -f enable docker && sudo systemctl -f restart docker; }
err : Process exited with status 1
output : --- /lib/systemd/system/docker.service 2024-12-17 15:44:19.000000000 +0000
+++ /lib/systemd/system/docker.service.new 2025-02-16 15:00:51.412898369 +0000

Operating System

Ubuntu

Driver

Docker

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

1 participant