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

Unable to run systemctl / service command in WSL2 Ubuntu20.4 #6561

Closed
AnuragYadav171 opened this issue Feb 17, 2021 · 3 comments
Closed

Unable to run systemctl / service command in WSL2 Ubuntu20.4 #6561

AnuragYadav171 opened this issue Feb 17, 2021 · 3 comments

Comments

@AnuragYadav171
Copy link

AnuragYadav171 commented Feb 17, 2021

Hi,

Thanks for WSL2, its a great service to cope up with Linux within Windows !

However, I am unable to run systemctl / service command in WSL2 Ubuntu20.4
Is systemctl services not available in WSL2 or I need some other configuration procedure.

(base) anurag@DESKTOP-5A47SBM:~$ sudo systemctl status docker
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
(base) anurag@DESKTOP-5A47SBM:~$
(base) anurag@DESKTOP-5A47SBM:~$
(base) anurag@DESKTOP-5A47SBM:~$ sudo service docker start
docker: unrecognized service
@therealkenc
Copy link
Collaborator

/dupe #1579 ➡️ #994

@ghost
Copy link

ghost commented Feb 17, 2021

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@ghost ghost added the duplicate label Feb 17, 2021
@therealkenc
Copy link
Collaborator

sudo service docker start

There is a docker use-case discussion here.

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

2 participants