-
Notifications
You must be signed in to change notification settings - Fork 1.3k
How to enable systemd for a container? #588
Comments
The easy answer to this is you shouldn't need the ssh daemon to be running inside the container. That being said, this isn't an issue with boot2docker, but rather an issue with how you're trying to use Docker itself. As such, I'm referring you to the Docker IRC channel and closing this issue. |
Ok I agree about this issue not belonging to boot2docker but why shouldn't one need to run ssh daemon inside a container? |
The docker way is to run a single process in a container, but if you need to get into the container (say with bash to check config) then |
What about in a scenario where you want to access graphical applications from a docker container? you'd need sshd to be running to connect via ssh -X from host, right? |
Not necessarily, you should be able to achieve it all with mounts and |
You're also the creator of moby/moby#8710 upstream, where @jfrazelle is very interested in making this work without extra hacks like running SSH in the container. 😄 |
@tianon yes, i got GUI applications to run by running sshd inside a container, forwarding ports in virtualbox and then ssh -X to container to run the application. I hope @jfrazelle can come up with a way for this! |
@yosifkit have you used -e DISPLAY=unix$DISPLAY on OSX? |
I don't have access to an OSX machine, so no. Yeah, |
yes! i definitely want to it's unfortunate I nuked my mac partition completely the other day, think i might have to bring it back for this |
You could always install Mac OS to a USB stick or something... ;) |
lol omg i want to do that just to laugh at the fact im booting mac on a usb stick on MY mac |
@jfrazelle just remember to get a USB3 stick - makes a heck of a difference :) |
I am running boot2docker on OSX 10.10
I'd like to be able to use systemd inside a container, specifically to enable ssh daemon service.
I did the following:
Any help is appreciated, I've been at this for long now :(
The text was updated successfully, but these errors were encountered: