On Jun 23 2018, Nikolaus Rath <Nikolaus at rath.org> wrote: > On Jun 23 2018, aleivag <aleivag at 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 at 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? (I ran a "sleep <big-unique-numebr>" in the container and grepped "ps ax" for the number in the host). Best, -Nikolaus -- GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F »Time flies like an arrow, fruit flies like a Banana.«