-
Notifications
You must be signed in to change notification settings - Fork 182
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
CentOS can't start services (eg. SSH) #60
Comments
WSL doesn't support services at this time, as far as I know. This is something to discuss in the WSL issue tracker. See: microsoft/WSL#376 |
But if I run 'sudo service ssh --full-restart' I get the following:
And then if I open up something like PuTTY and connect to '127.0.0.1', I'm in :P EDIT: This is on the version of Ubuntu that comes with WSL |
Processes can run in the background while your WSL console is open, but will be closed when you close it. At least, that's what happened last time I checked. In your case the issue is with D-Bus, so try fixing that. As far as I know, it's fixable, but has the same issue of closing once you close the console. Check out the tutorials which install a full desktop environment, since that requires D-Bus too. |
When I try to start something like SSH, I get the following error:
Failed to get D-Bus connection: Operation not permitted
On the CentOS docker page, they mention that you need to use this pre-build and then lunch it using:
docker run --privileged --name httpd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 -d httpd
I can download the pre-build just fine, but how would you implement the docker run command from above?
The text was updated successfully, but these errors were encountered: