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

CentOS can't start services (eg. SSH) #60

Closed
DeadPixelz01 opened this issue Aug 21, 2017 · 3 comments
Closed

CentOS can't start services (eg. SSH) #60

DeadPixelz01 opened this issue Aug 21, 2017 · 3 comments

Comments

@DeadPixelz01
Copy link

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?

@RoliSoft
Copy link
Owner

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

@DeadPixelz01
Copy link
Author

DeadPixelz01 commented Aug 21, 2017

But if I run 'sudo service ssh --full-restart' I get the following:

 * Stopping OpenBSD Secure Shell server sshd                                           [ OK ]
 * Starting OpenBSD Secure Shell server sshd   

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

@RoliSoft
Copy link
Owner

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.

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

2 participants