News for hackers. Stuff that matters.
Re:Systemd can now pull and update container images from the... by houst0n_ on Saturday January 17, 2015 @10:45AM (#8904513)
When the big debate about systemd was going on, I couldn't really care less. In fact, I thought a future where the big distros used the same init system was a rosy one. No need to have to rewrite some init script to yet another system depending on the flavour of my clients. No need for our config management tools to have a gazallion 'if os == foo' statements.

Now, I'm just not so sure. The feature creep here is remarkable. Why on earth would systemd have anything to do with container management? Surely the 'docker' (or whatever) service which systemd is supposed to be managing should be doing this?

Another nail in the coffin of simple software that does one thing well.

Edit: s/docker/container management/

Re:Systemd can now pull and update container images from the... by geofft on Saturday January 17, 2015 @11:21AM (#8904621)
Where was the simple software that does one thing well? Did it ever exist?

I'd believe you if Docker was some elegant, tiny, well-written tool, and systemd was a bloated mess of AbstractLinuxContainerFactoryImpls. But as far as I can tell, Docker is the thing that is neither simple nor does its one thing particularly well, and systemd implements this straightforwardly, because of all things you might want to do, booting a system is kind of easier if you're already an initsystem.

If systemd decides to implement WebGL or take on Sublime Text, let's talk, but these 200 lines of C don't seem like a reason to believe that we've moved away from simple software that does things well:

http://cgit.freedesktop.org/systemd/systemd/commit/src/impor...

Re:Systemd can now pull and update container images from the... by lvh on Saturday January 17, 2015 @03:17PM (#8905376)
The entire diff being discussed isn't just about import.c, but a bunch of other things too. For example, to get it to do something interesting, you also want import-dkr.c. Add it all up, and we're talking 2000, not 200, lines of C:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=72648...

Re:Systemd can now pull and update container images from the... by geofft on Saturday January 17, 2015 @04:50PM (#8905637)
Oops. I got confused by gitweb's interface... thanks. I have some opinions, mostly negative, about new C code, but even so it doesn't seem all that bad by UNIX standards. The bulk of the stuff I missed mostly looks like it's about connecting to the Docker registry and linking to libcurl, and this is about as big as I'd expect for C.
Re:Systemd can now pull and update container images from the... by vruiz on Saturday January 17, 2015 @10:50AM (#8904528)
It's not about docker, it about systemd-nspawn which is systemd's own alternative to docker.

I'm with you here, at first I didn't understand the alarm but now I'm starting to see the danger of this trend.

Re:Systemd can now pull and update container images from the... by ris on Saturday January 17, 2015 @11:36AM (#8904674)
I don't think systemd is moving into this territory just for fun. I seem to recall it's because now the kernel is moving towards unified cgroups-trees if systemd wants to be able to use cgroups it more or less has to be "in charge" of them at the root, meaning it's going to have to take care of this sort of functionality.
Re:Systemd can now pull and update container images from the... by digi_owl on Saturday January 17, 2015 @02:10PM (#8905197)
Last i read on LWN the cgroups kernel dev was backing away from the idea of having a singular cgroups management daemon.

And no, its not just for fun. RH is betting big on competing with Amazon and MS on cloud services. It would not surprise me if they are trying to get old RHEL server customers to move their servers onto the RH cloud with the switch to RHEL7.

Re:Systemd can now pull and update container images from the... by sciurus on Saturday January 17, 2015 @11:47PM (#8906667)
What Red Hat cloud?
Re:Systemd can now pull and update container images from the... by digi_owl on Sunday January 18, 2015 @05:32AM (#8907190)
Re:Systemd can now pull and update container images from the... by sciurus on Sunday January 18, 2015 @09:04PM (#8909910)
That doesn't answer the question. To clarify, what I meant was that Red Hat doesn't run a public IaaS cloud to which people can "move their servers".
Re:Systemd can now pull and update container images from the... by jacquesm on Saturday January 17, 2015 @11:38AM (#8904682)
Linux should simply adopt jails and get it over with rather than to get stuck in NIH territory.
Re:Systemd can now pull and update container images from the... by ris on Saturday January 17, 2015 @11:50AM (#8904715)
Right. They should "port" a feature that's intricately linked with the internal workings of a kernel over from another completely alien kernel.
Re:Systemd can now pull and update container images from the... by jacquesm on Saturday January 17, 2015 @11:52AM (#8904726)
Nobody said it would be easy.
Re:Systemd can now pull and update container images from the... by ris on Saturday January 17, 2015 @02:08PM (#8905191)
You... more or less implied it
Re:Systemd can now pull and update container images from the... by dezgeg on Saturday January 17, 2015 @12:33PM (#8904852)
Cgroups are not a virtualization / containerization feature like jails, their use cases are entirely different.
Re:Systemd can now pull and update container images from the... by geofft on Saturday January 17, 2015 @11:45AM (#8904700)
I'm not super familiar with either, but as I understand it, systemd-nspawn is only an alternative to "docker run". The docker command supports all sorts of other things, like creating container images, manipulating, uploading, etc. systemd-nspawn just runs things, and the upstream docs suggest using debootstrap, yum, etc. to create a thing for nspawn to run. (Running things is both the easy part, and the part that most makes sense for an initsystem / system daemon to do.)

systemd-import will grab Docker images from the internet, but I'm not sure it will do very much else. In other words, even if you adopt systemd's way of doing things in deployment, your developers are still using the docker command.

Re:Systemd can now pull and update container images from the... by justincormack on Saturday January 17, 2015 @11:51AM (#8904724)
Well thats kind of why Rocket from CoreOS is writing specs and splitting these things up [1] so you can use different tooling.

[1] https://github.com/appc/spec/blob/master/SPEC.md

Re:Systemd can now pull and update container images from the... by linuxydave on Saturday January 17, 2015 @11:58AM (#8904747)
>When the big debate about systemd was going on, I couldn't really care less.

>Now, I'm just not so sure.

You're starting to see what the original opponents feared a long time ago. It doesn't look like the feature creep is going to end any time soon, although I wonder if there will be a breaking point when even the fanboys say, "Hang on, this is a bit much..."

Re:Systemd can now pull and update container images from the... by jacquesm on Saturday January 17, 2015 @01:52PM (#8905134)
By the time the frog realizes the water is boiling it is a bit late.
Re:Systemd can now pull and update container images from the... by eleitl on Saturday January 17, 2015 @11:42AM (#8904691)
> When the big debate about systemd was going on, I couldn't really care less.

> Now, I'm just not so sure. The feature creep here is remarkable.

Now you know why we had that acrimonious debate. This is precisely what was obvious right from the start.

Linux is Windows NT now, the only way to have a decent nix is to pick BSD.

Re:Systemd can now pull and update container images from the... by up-n-atom on Saturday January 17, 2015 @02:44PM (#8905292)
It is singular software by implying a plural tense. It may be miss branded as a single monolithic unit but it exist to an extent as separate entities, and yes, some have a hard dependency between each other. It is no different to that of iproute2 which has succeeded net-tools; what were your thoughts on that?