Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is plenty of examples in the documentation. The man page (man systemd-nspawn) is short and to the point.

As for your example,for regular daemons you probably want to use plain old unit files. You map ports with "Port=" and bind filesystems with "Bind=" ("/outside/data:/data" in your example). Again, plenty of examples in the documentation and in the Gentoo/Arch wikis which are excellent.

It also includes examples working with (not against) SELinux. Lots of other parts of the systemd family is nasty and full of surprises but this one pretty straightforward. systemd was built on cgroups from the ground up and it makes administering them fairly trivial.



Thanks, hadn't heard about systemd-nspawn. Arch wiki to the rescue again, as you say.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: