News for hackers. Stuff that matters.
Re:Systemd vs. Docker by pmoriarty on Thursday March 03, 2016 @09:41AM (#11217027)
CoreOS's Rocket is built around systemd?

That alone disqualifies it for me right there.

Re:Systemd vs. Docker by philips on Thursday March 03, 2016 @10:23AM (#11217333)
rkt isn't built around systemd. It does use it internally and integrates well with it.

Inside of rkt there is an internal logical separation between the tool that sets up the container filesystems and the one that executes them. We call those things stages[1].

Now inside of rkt we have a few different "stage1" options today:

- systemd: this means that your container has a real init system

- clear containers: execute the container inside of a virtual machine with lkvm.[2]

- direct execution w/ fly: no init system is involved for special privileged containers.[3]

If someone wanted to contribute a stage1 that used a different init system that would be great. But, today systemd works fine and is generally an implementation detail. We also get some bonuses by using systemd on systemd systems like machinectl integration, and journald integration.

Also, I should note that rkt should work on non-systemd systems as well. Again, because, systemd is an internal detail.

[1] https://coreos.com/rkt/docs/latest/devel/architecture.html#s... [2] https://coreos.com/blog/rkt-0.8-with-new-vm-support/ [3] https://coreos.com/blog/rkt-0.15.0-introduces-rkt-fly.html

Re:Systemd vs. Docker by bryanlarsen on Thursday March 03, 2016 @10:31AM (#11217394)
Why the systemd hate? Because it's a big monolithic project that takes over your system? You do realize that Docker is much more monolithic and opinionated than systemd, right?
Re:Systemd vs. Docker by kordless on Thursday March 03, 2016 @11:34AM (#11217929)
When you ask questions, especially leading ones, it causes a good deal of confusion around the topic at hand. The reasons behind this are complex, but they have something to do with our tendency to double bind each other.

Someone has the right to say why something is "disqualified" for them, even if it is devoid of context. What is awesome here is that the leading expert for this topic is replying directly to the negative (empty) opinion and actually presents a (rich) alternate opinion.

How does you asking unanswerable questions contribute to resolving the conversation to something we can all learn from?

Re:Systemd vs. Docker by GFK_of_xmaspast on Thursday March 03, 2016 @12:58PM (#11218567)
So in other words "questions are a burden and answers are a prison for oneself".
Re:Systemd vs. Docker by kordless on Friday March 04, 2016 @12:42AM (#11222241)
Regardless of their nature, questions are definitely a burden. However, I think the way some questions are put can cause a disproportionate amount of burden when they contain hidden meanings or agendas.

If someone is having issues being direct and use techniques to "hide" how they feel about something in a question, they effectively load the question with intent. I think sometimes those questions can be viral in nature, causing angry memes like what they mention in "This Video Will Make You Angry": https://www.youtube.com/watch?v=rE3j_RHkqJc

Logic would dictate that we should learn to avoid questions which cause excessive amounts of processing with little return in their answers. A simple way to filter on these is to ask if the question conflicts itself when answered in a given way.

Re:Systemd vs. Docker by qwertyuiop924 on Thursday March 03, 2016 @12:15PM (#11218259)
Yes, but I will never have to use docker if I don't want to. For that matter, docker doesn't try to be cron, it doesn't want to handle mounting, didn't subsume udev, and doesn't encourage other project to link against it, and to drop all compatibility with non-linux systems. Systemd does, did, and is doing that right now.
Re:Systemd vs. Docker by bryanlarsen on Thursday March 03, 2016 @12:54PM (#11218531)
"but I will never have to use docker if I don't want to."

I predict that fairly soon install instructions for a lot of different types of software will be "docker run ..."

For example, try running discourse without using docker.

Re:Systemd vs. Docker by qwertyuiop924 on Monday March 07, 2016 @01:33PM (#11240559)
Install deps, configure it, done. Looks straightforward, if a tad undocumented.

The thing is, the inside of a docker container is by definition indistinguishable from a regular linux install. Discourse isn't dependent on Docker, not the same way GNOME is dependent on systemd: It just encourages you to use it.

Re:Systemd vs. Docker by digi_owl on Friday March 04, 2016 @12:49AM (#11222267)
And others will list systemd as a hard dependency. The future will be "fun".
Re:Systemd vs. Docker by agentgt on Thursday March 03, 2016 @10:35AM (#11217436)
I really hope unikernels take off because I really hate dealing with both (particularly docker more so than systemd).
Re:Systemd vs. Docker by rdtsc on Thursday March 03, 2016 @10:41AM (#11217488)
I am a bit with Cantrill on unikernels they sound cool to play with, but I would hate to debug issues with them in production.
Re:Systemd vs. Docker by agentgt on Thursday March 03, 2016 @11:02AM (#11217667)
I'm curious what you mean by debug. If you mean monitor all of our apps send metrics, health checks, and logs over the wire I'm sure that is independent.

What would docker allow you over the unikernel especially given the best practice push for docker images to only run one thing in a container?

IMO with Unikernel Xen aka Hypervisors are the container holders instead of docker.

Re:Systemd vs. Docker by vidarh on Thursday March 03, 2016 @11:40AM (#11217984)
With a Docker container, I can exec into it and run strace, ltrace, gdb etc.. With a unikernel it all depends on what you have built into the unikernel. That might provide everything I need, or not. The issue is that we will need a lot of toolking to put unikernels on a sufficiently equal footing vs. being able to run decades worth of Linux tools directly in the containers.
Re:Systemd vs. Docker by agentgt on Thursday March 03, 2016 @12:00PM (#11218148)
The issue I have with that is the tooling you mention while stable and mature is actively being replaced by cloud tools because you really can't just debug a single machine in production when you have a cluster.. not to mention it is production so debug symbols might not even be available.

I understand your point of the maturity w/ tooling but I see it as a serious failure if you have to log into a machine in production and run gdb or IMO any tool. Your app can and should provide healthchecks/monitoring so that you can see if there is a problem (this includes even a thread stack dump).

I'm probably just biased and jaded as I have had some serious technical debt lost to Docker. It just feels like a VM on top of a VM on top of a VM of continuous things to break/learn... I want baremetal :)

Re:Systemd vs. Docker by rdtsc on Thursday March 03, 2016 @12:06PM (#11218195)
> you really can't just debug a single machine in production when you have a cluster

Somehow I ended up debugging, tracing, monitoring and even hotpatching individual machines in the cluster. Yeah the easy problems will show up in the monitoring and logs. The harder ones won't.

Re:Systemd vs. Docker by agentgt on Thursday March 03, 2016 @01:29PM (#11218792)
That must have been a pain in the butt :) . And for sure your right there are always exceptions.

I guess I haven't ran into those issues probably because I run JVMs but I suppose if you have native code or an interpreter using native code I can see how it would be helpful to just SSH and figure out what the issue is.

Now that I recall I have actually had to SSH a bunch of times because of Rackspace network interfaces randomly failing so I am a big hypocrite :)

Re:Systemd vs. Docker by rdtsc on Thursday March 03, 2016 @04:28PM (#11220177)
It wasn't a huge pain. It was Erlang, so I could do those very easily. But it still had to be done by logging into a few machines and poking around. I can't imagine if that was somehow a bunch of C code combined with a kernel running in the same memory space.
Re:Systemd vs. Docker by rdtsc on Thursday March 03, 2016 @12:04PM (#11218181)
But I am not using docker either ;-)
Re:Systemd vs. Docker by atemerev on Thursday March 03, 2016 @11:04AM (#11217678)
Opinionated, yes. Monolithic, no. Huge mess of everything that deeply integrates in any system — of course not, your containers don't need to know anything about Docker and host system, you are absolutely free in choices. It's even possible to run (gasp!) multiple services with supervision inside Docker.
Re:Systemd vs. Docker by bryanlarsen on Thursday March 03, 2016 @11:08AM (#11217717)
That's the first time I ever heard anybody argue that Docker isn't monolothic. It does everything inside it's single daemon executable. Compare against Rocket, which doesn't use a daemon, and uses separate executables for different tasks and stages.
Re:Systemd vs. Docker by qwertyuiop924 on Thursday March 03, 2016 @12:18PM (#11218278)
Docker is monolithic, probably more so than it should be, but designed quite well, allowing for things like triton to exist. Systemd is monolithic, but does far more than docker, and really more than it should.
Re:Systemd vs. Docker by baldfat on Thursday March 03, 2016 @10:20AM (#11217316)
> That alone disqualifies it for me right there

For philosophy reasons? Can people just not accept that systemd is the main solution that the community has accepted and move along?

Re:Systemd vs. Docker by jimktrains2 on Thursday March 03, 2016 @10:27AM (#11217364)
Or they can move to one of the BSDs and use jails which are much more stable, secure, and tested than linux containers.
Re:Systemd vs. Docker by vidarh on Thursday March 03, 2016 @11:41AM (#11217992)
Rocket is not limited to Linux containers. It can also run in VMs. Incidentally there are also solutions to run Docker containers in VMs (Rocket itself should able to, but there are others as well, like hyper.sh)
Re:Systemd vs. Docker by 4ad on Thursday March 03, 2016 @10:42AM (#11217493)
> stable, secure, and tested

That is true, however jails lose a lot of power without VIMAGE. VIMAGE is not enabled by default yet, and it's pretty unstable (I use it). I really wish VIMAGE would mature, but we're not there yet.

Re:Systemd vs. Docker by xaduha on Thursday March 03, 2016 @10:39AM (#11217459)
Technology isn't that important here, it's what stems from it is. Adoption, infrastructure, tools, community.

There's also a price for doing it differently. And believe you me, using BSD nowadays is the definition of doing things differently. What for? What I'm getting for losing my time and reinventing the tools that are already available and much more polished?

Dockerfiles can be replicated. Docker Hub can be replicated. Missing things can be compiled from sources, probably. But all that costs time for little to no gain.

Re:Systemd vs. Docker by laumars on Thursday March 03, 2016 @11:05AM (#11217685)
You do realise that "different" platforms can still be popular enough to have a lot of the same ecosystems. Hell, Docker itself used to be the "alternative"; not even that long ago in fact.

FreeBSD might only have a fraction of the community that Linux does, but that's still a pretty large number of developers and sysadmins in real world terms.

Disclosure: I run both FreeBSD and Linux systems.

Re:Systemd vs. Docker by rleigh on Friday March 04, 2016 @04:20AM (#11222790)
There are also some interesting systems build on top of jails. I'm starting to use iocage, which uses both ZFS and jails to manage and create systems with great ease. Better or worse than Docker? It's different. It does some things docker does not, and vice versa. I'm currently in the evaluation stage, and it's likely I'll be using it to replace hand built jails running PostgreSQL, builds and other single-purpose tasks.
Re:Systemd vs. Docker by xaduha on Thursday March 03, 2016 @11:11AM (#11217751)
And your point is? A suggestion to switch to BSD and jails for an average user of Docker is laughable.
Re:Systemd vs. Docker by laumars on Thursday March 03, 2016 @11:34AM (#11217937)
Well if someone is competent enough to create a Docker image then it's not a great stretch to assume many of them would also be competent enough to create a jail. And FreeBSD is just as easy to use as Linux (actually, I generally find it easier to administrate than Linux since things are more rigorously laid out. But a lot of that is also down to my own personal preference).

At the end of the day, both Jails and Docker are well documented. So even the people only interested in blindly copying and pasting commands should be able do the basics.

The real problem FreeBSD and jails face isn't with support nor accessibility but rather dumb prejudice. Much like why many Windows users think Linux is difficult. If you spend your whole time shouting that your way of doing things is the best then you're never going to give anything else a fair chance.

Re:Systemd vs. Docker by xaduha on Thursday March 03, 2016 @12:05PM (#11218192)
You're missing the point. Even if jails is the most elegant, easy and powerful technology in the world it's still on BSD. People are not going to switch to BSD just because of jails. Sure, then can use both, but why?

Docker and linux containers in general made things easier and more accessible for many. Switching from that to jails doesn't make sense.

Re:Systemd vs. Docker by laumars on Thursday March 03, 2016 @12:27PM (#11218337)
> You're missing the point. Even if jails is the most elegant, easy and powerful technology in the world it's still on BSD. People are not going to switch to BSD just because of jails.

We're not just talking about jails though. The OP was discussing systemd + containers. Switching to FreeBSD to escape systemd isn't that weird of an idea since most of the same Linux software will also run on FreeBSD. In fact I'm seriously considering switching my Debian 7 (Wheezy) servers over to FreeBSD rather than upgrade to Debian 8 (Jessie) and have deal with systemd. Anecdotally I've read other people consider switching away from Linux as well

You might like systemd and Dockers. That's great. But that's your personal preference. You shouldn't be so surprised when other people might prefer to run the same software but on a different platform.

On a tangent note: I also have a bunch of existing systemd systems - RHEL servers, ArchLinux desktops, etc - that I'm very happy with and intend to keep running Linux. I make this point just to emphasise that I'm not anti-Linux nor a FreeBSD fanboy. Just someone who's platform agnostic.

> Sure, then can use both, but why?

Why not? This isn't a sports team where you're expected to only support one product. It's quite possible to use multiple different technologies based on whatever fits a specific purpose better.

Re:Systemd vs. Docker by xaduha on Thursday March 03, 2016 @12:36PM (#11218395)
> Why not? This isn't a sports team where you're expected to only support one product.

Linux/Docker and BSD/jails aren't even in the same league.

Re:Systemd vs. Docker by laumars on Thursday March 03, 2016 @12:44PM (#11218462)
> Linux/Docker and BSD/jails aren't even in the same league.

Since you don't have any basis for comparison, I'm going to have to assume that you're now just trolling me. So I'll end our correspondence here.

Re:Systemd vs. Docker by Wilya on Thursday March 03, 2016 @11:26AM (#11217870)
Have you used both jails and Docker? Saying docker is a much more polished option doesn't match my experience. Yes, it has more features, but with these features come more bugs. Some of them are minor annoyances. Some are of the "our infrastructure is fucked until we switch our storage driver" kind.

Sometimes, stability is a gain.

Re:Systemd vs. Docker by xaduha on Thursday March 03, 2016 @11:57AM (#11218129)
I'm not comparing Docker and jails, I'm talking about things around. Stackoverflow.com coverage, blogs posts and guides, github repos, publicly available images, etc.
Re:Systemd vs. Docker by JdeBP on Thursday March 03, 2016 @12:44PM (#11218457)
> And believe you me, using BSD nowadays is the definition of doing things differently.

... although people like Florian Haas argue that the way that one does things on the BSDs is actually the way that makes sense to do things with Docker, as well, and the way that you think to be "different" is actually the sensible way overall.

* https://plus.google.com/+FlorianHaas/posts/4xjQP1q6DEN

* https://www.hastexo.com/blogs/florian/2016/02/21/containers-...

Re:Systemd vs. Docker by xaduha on Thursday March 03, 2016 @12:57PM (#11218558)
Choosing BSD instead of Linux is "doing things differently". I'm talking about popularity and what it means in this whole comment tree, not about technical merits.
Re:Systemd vs. Docker by protomyth on Thursday March 03, 2016 @10:55AM (#11217599)
That's basically the argument to use Windows and Windows-based technology and not Linux. Everything you can do on any of the UNIX boxes, you can do with Windows. It might be different, but it is still a more popular / supported platform.

Since I'm not a Windows fan, I find value in doing it differently, and so have Linux fans. I think you will find FreeBSD and SmartOS users find the cost in time to bring a large enough gain to satisfy their business requirements.

Re:Systemd vs. Docker by xaduha on Thursday March 03, 2016 @11:06AM (#11217701)
> That's basically the argument to use Windows and Windows-based technology and not Linux.

Not today it isn't. Years, maybe decades ago it could be.

What Linux containers do is help to remove the barrier that various distributions introduced, it makes things more accessible and it's more lightweight than using virtualization. Centos, Alpine, Ubuntu, whatever. As long as it is in a container I can work with it. I can even run some Windows binaries with Wine inside a container. rkt is largely compatible with Docker infrastructure, so that too is fine.

But what jimktrains2 suggesting is complete opposite of that, it reduces options.

Re:Systemd vs. Docker by laumars on Thursday March 03, 2016 @12:09PM (#11218221)
> But what jimktrains2 suggesting is complete opposite of that, it reduces options.

Personally I'd consider having familiarity with more than one platform would increase one's options.

But ultimately having other solutions on the market is a good thing. Not only because no one solution is the best at every metric (be it stability, security, speed, memory usage, nor any specific requirements), nor because different solutions can appeal to different personalities. But mostly because different solutions might solve a problem in a unique way that the competing solutions may not have considered - often in ways that can ported and thus benefit the competitors and wider community.

So I wouldn't be so quick to dismiss anything that's outside your field of expertise.

Re:Systemd vs. Docker by xaduha on Thursday March 03, 2016 @12:31PM (#11218368)
What you're talking about is a luxury I can't afford. That's what I mean when I talk about the price. There are plenty of far more important technologies that I would rather learn.

I can't afford to learn two technologies that do about the same thing, of which one is significantly less popular, might now have tools that other has and runs on a significantly less popular OS.

Re:Systemd vs. Docker by laumars on Thursday March 03, 2016 @12:42PM (#11218450)
That's actually a fair point and one I completely sympathise with. But your original argument very much sounded like you were suggesting that people in general shouldn't bother with FreeBSD, jails, nor any other technologies which weren't dominant in their respective field. Which is why we disagreed.
Re:Systemd vs. Docker by xaduha on Thursday March 03, 2016 @12:50PM (#11218510)
You misinterpreted it.
Re:Systemd vs. Docker by JohnDoe365 on Thursday March 03, 2016 @10:39AM (#11217460)
Or they can move to a steam engine which are much more stable, secure, and tested than cars consuming gasoline.

Embrace the change, it's for a better future.

Re:Systemd vs. Docker by 4ad on Thursday March 03, 2016 @10:43AM (#11217504)
> Embrace the change, it's for a better future.

Unfortunately, especially when you also factor in the impact of ZFS and DTrace, you are moving into the past, not the future.

Re:Systemd vs. Docker by qwertyuiop924 on Thursday March 03, 2016 @12:22PM (#11218305)
Quite.

Embrace the change of having less security, less control, and less capability to debug your software.

Re:Systemd vs. Docker by baldfat on Thursday March 03, 2016 @11:18AM (#11217814)
Poster of embrace the community.

They don't have to embrace the change they have other options. What bothers me is they chose to shoot down everything and anything that has systemd in it out in the public. Just leave the fight and just embrace your choice and allow others to have their choice and don't pee on their parade.

Re:Systemd vs. Docker by baldfat on Thursday March 03, 2016 @11:56AM (#11218122)
Exactly that is your choice. I am concerned about the drama of systemd by people that don't like systemd always peeing on every and anything that mentions systemd.

It is in the old rpm vs deb, vim vs emacs, python vs perl dram of the past.

Re:Systemd vs. Docker by qwertyuiop924 on Thursday March 03, 2016 @12:21PM (#11218299)
No, it isn't. Nobody is going to try to nuke my emacs install, and install vi on my machine instead. If vi started deleting emacs, or using non-utf8 encodings on all text for some reason, or otherwise made using emacs impossible, the vi developers would fix it, or the community would say, "What the FUCK!?" and probably fork it.
Re:Systemd vs. Docker by michaelmrose on Thursday March 03, 2016 @10:56AM (#11217608)
The concept of the community is an abstraction and in this case a bad one. There is no community. There are a million different individuals and within that thousands of communities each composed of some subset of those individuals.

There is no reason each subset or each individual even shouldn't have their own opinion and based their actions upon it.

Re:Systemd vs. Docker by baldfat on Thursday March 03, 2016 @11:38AM (#11217961)
> There is no community

The very foundation of Open Source / Free Software Movement is 100% community. The very foundation of Closed Source is "There is no community." Community isn't an abstraction but is what has built Linux.

To quote RMS (Who I disagree most of the time but highly respect)

>Tens of millions of people around the world now use free software; the public schools of some regions of India and Spain now teach all students to use the free GNU/Linux operating system. Most of these users, however, have never heard of the ethical reasons for which we developed this system and built the free software community, because nowadays this system and community are more often spoken of as “open source”, attributing them to a different philosophy in which these freedoms are hardly mentioned. http://www.gnu.org/philosophy/open-source-misses-the-point.e...

> There is no reason each subset or each individual even shouldn't have their own opinion and based their actions upon it

100% my point move to your choice and don't pee on systemd every time it is brought up. Your opinion is different then the majority in regards to systemd and you can use those options and not have to discount everyone else's choice.