User: Password:
|
|
Subscribe / Log in / New account

systemd machinectl

systemd machinectl

Posted Jul 19, 2016 16:12 UTC (Tue) by paulj (subscriber, #341)
Parent article: Docker adds orchestration and more at DockerCon 2016

I was playing around with systemd containers (systemd-nspawn / machinectl) again recently, with the 219 code on CentOS. I have to say, I _much_ prefer it to docker. Just much cleaner, simpler and obvious (least to this longish-time Linux user).

Granted, systemd doesn't have the whole "pull some random image built by $DEITY-knows-who" repository thing (yet) + some weird, ad-hoc DSL to specify building and modifying images. However, that's a feature for me.

Systemd instead encourages you to just use the normal system tools (dnf, yum, pacman, debootstrap, etc.) to install a distro to a directory or volume. Using the distro-provided mechanisms for validating what you installed is what was intended. It lets you use standard system tools for provisioning the storage, from the trivial (just don't bother with anything fancy), to more complicated (overlays, LVM thin provisioning, etc.). Just much more natural to me. You can use standard scripting tools for running commands to manipulating images too (inc easily running commands inside the container, even when not running / 'unbooted', via systemd-run) - lot saner.

On "(yet)": They seem to be working on some kind of image management support. Unfortunately, heavily tied to specific OS features. E.g., btrfs. Which is a shame. However, as long it doesn't affect the existing "as you want" of the existing pieces, that's fine.

Basically, for the benefit of anyone else like me: systemd-nspawn / machinectl ++, docker--.


(Log in to post comments)

systemd machinectl

Posted Jul 21, 2016 14:19 UTC (Thu) by mathstuf (subscriber, #69389) [Link]

You can also export docker images and import them into machinectl. This way you get the docker image build setup, but machinectl to run them. Not that the docker build stuff is the best, but there is stuff that "only" supports it.

systemd machinectl

Posted Jul 22, 2016 3:52 UTC (Fri) by spwhitton (subscriber, #71678) [Link]

Propellor exploits this (and generalises the approach to Docker containers too).


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds