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

wsl2 can not excute "systemctl daemon-reload" command #8167

Closed
remainfox opened this issue Mar 18, 2022 · 3 comments
Closed

wsl2 can not excute "systemctl daemon-reload" command #8167

remainfox opened this issue Mar 18, 2022 · 3 comments
Labels

Comments

@remainfox
Copy link

remainfox commented Mar 18, 2022

In order to update the docker image source in wsl2, I ran the following command

systemctl daemon-reload

but an error was reported, the error message is as follows

System has not been booted with systemd as init System (PID 1). Can't operate.  

Try service daemon-reload, it won't work either

wsl version

NAME            STATE           VERSION
Ubuntu-18.04    Running         2

System Information

  Time of this report: 3/18/2022, 16:57:10
         Machine name: PC
     Operating System: Windows 10  64-bit (10.0, Build 19043) (19041.vb_release.191206-1406)
  System Manufacturer: LENOVO
         System Model: 81Q5
                 BIOS: BHCN35WW (type: UEFI)
            Processor: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 CPUs), ~2.6GHz
               Memory: 16384MB RAM
  Available OS Memory: 16304MB RAM
            Page File: 22187MB used, 3155MB available
@elsaco
Copy link

elsaco commented Mar 18, 2022

@remainfox systemd is not supported on WSL at this time. There are hacks to enable it, but YMMV.

@remainfox
Copy link
Author

ok

@tobiillz
Copy link

Is there a way to run the daemon reload service on WSL?

I successfully installed the Daemon-reload service but on running the below in the terminal, i get "unrecognized service"

           $ sudo service daemon-reload 

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

No branches or pull requests

3 participants