On Sa, 23.06.18 21:57, Nikolaus Rath (nikol...@rath.org) wrote:

> On Jun 23 2018, Nikolaus Rath <nikol...@rath.org> wrote:
> > On Jun 23 2018, aleivag <alei...@gmail.com> wrote:
> >> short answer, yes, `machinectl login` is only suppported for systemd-init ,
> >> and `machinectl shell` `systemd-run` will try to talk to the container via
> >> dbus, so i dont think you are force to have systemd runing inside the
> >> container (i may be wrong) but you do need to have dbus (and its easy to
> >> just have systemd).  if you dont need it, you can always use nsenter to
> >> access a namespace on your machine
> >
> > Still not working:
> [..]
> > $ sudo machinectl shell root@iofabric
> > [sudo] password for nikratio: 
> > Failed to get shell PTY: Cannot set property
> > StandardInputFileDescriptor, or unknown property.
> 
> So this seems to be caused by systemd in the container being too old,
> and is therefore not available here.
> 
> The 'nsenter' approach seems to work so far, but I don't see a generally
> applicable way to figure out the right PID. Is there a trick for
> that?

machinectl show --value $MACHINE -p Leader

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to