

NB: You can use -D instead of -directory= Just run systemd-nspawn (eventually as root): systemd-nspawn -directory=debian-tree/ NB: I use Debian as an example, but using yum or pacstrap, you can install respectively fedora or arch as easily. It downloads Debian unstable files in the local debian-tree directory. debootstrap -arch=amd64 unstable debian-tree/ This command is available on most linux distributions (well, I checked for apt, yum and yaourt, using AUR). We use debootstrap to pull a minimal Debian on our filesystem.

We are going to run a simple Debian inside the most basic container. Let's start with some practical example, directly inspired from one of the Poettering articles. I present in this article the basics of systemd-nspawn, the enhanced chroot that systemd brought to us to build containers. But anyway, I did not know it was so easy-to-use! It is not so surprising actually, since systemd is close to the kernel and so provides an abstraction over a lot of its features.
#Itorch could not start notebook. please install ipython notebook series#
And actually it has been made possible by a bunch of quite recent kernel features such as namespaces, control groups or union filesystems.Īs I was reading the excellent series of Lennart Poettering's articles about the use of systemd for administrators, I found out that systemd is actually able to handle its own containers. It has been originally based on LXC, though it embed additional functionalities, but it mostly provides a high level API for container management. This article is an overview of how you can manage docker-like containers using systemd.Īs you may know, the famous container manager docker is not the only container technology.
