News for hackers. Stuff that matters.
Re:Docker without Docker by chimeracoder on Sunday April 26, 2015 @01:01PM (#9442381)
Author here - I'm working on a blog post for this and didn't expect this to be posted on HN so soon, but I guess that's what I should expect for posting a link to it in another HN comment! :)

These slides correspond to a workshop I conducted a week ago demonstrating the internals of Docker and how Docker containers can be run without using any of the Docker tools or runtime.

Docker is a great tool, and I'm glad it's gained so much traction. But containerization is still new to many people, and even then there's still a lot of confusion about the difference between Docker and containerization in general. The goal of this presentation isn't to discourage anyone from using Docker, but to outline the lay of the land for people interested in using containers.

Personally, I run containers both with systemd and with Docker. The good news is that it's really easy to switch from one to the other, so there's very little cost to trying it out both ways.

Re:Docker without Docker by deepakprakash on Sunday April 26, 2015 @01:31PM (#9442500)
Thank you so much for the slides - even though I've been following the Docker/Rkt/LXC developments ever since Docker came out (albeit passively), this is the best resource I've come across that explains what happens internally in an easy to grok manner. The fact that you can do nearly everything in systemd is indeed a bonus.

I'm sorry if I jumped the gun before the blogpost was ready. :) Hopefully, the discussion will help even more!

Re:Docker without Docker by chimeracoder on Sunday April 26, 2015 @01:39PM (#9442531)
> this is the best resource I've come across that explains what happens internally in an easy to grok manner.

Thanks! I really appreciate that.

> I'm sorry if I jumped the gun before the blogpost was ready. :)

Nah, it's cool - if anything it creates even more social pressure not to procrastinate writing it!

Re:Docker without Docker by mrmondo on Sunday April 26, 2015 @06:06PM (#9443475)
Just a small FYI - whatever slide software that is - it doesn't render properly on mobile devices. On my 6+ half the slides are off the screen and it scrolls horizontally rather than vertically (that may be intended).
Re:Docker without Docker by pbreit on Sunday April 26, 2015 @06:26PM (#9443540)
Doesn't seem to work on desktop either. I only see 3 slides.

Edit: arrow keys are your friends.

Re:Docker without Docker by bcg1 on Sunday April 26, 2015 @05:08PM (#9443278)
Thank you for putting this presentation.

Always nice to cut through the hype and see how things really work. I knew Docker used namespacing for some quasi-virtualization, but was wary of using it because I haven't had time to dissect it on my own. You're a good writer, able to get a lot of information across in an engaging way.

Re:Docker without Docker by webwanderings on Sunday April 26, 2015 @02:32PM (#9442758)
Off topic: how do I create slides like this? What did you use to create 'em?
Re:Docker without Docker by dorfsmay on Sunday April 26, 2015 @10:19PM (#9444116)
An alternative to this system that I have been enjoying using is slidy, it makes slick presentation:

http://www.w3.org/Talks/Tools/Slidy2/

Re:Docker without Docker by Apofis on Monday April 27, 2015 @03:41PM (#9448638)
No scroll wheel support? F that.
Re:Docker without Docker by dorfsmay on Monday April 27, 2015 @05:05PM (#9449063)
Scroll wheel on a slide?
Re:Docker without Docker by FraaJad on Sunday April 26, 2015 @02:34PM (#9442770)
Re:Docker without Docker by mst on Sunday April 26, 2015 @04:09PM (#9443081)
The link in there is to code.google.com and now defunct. After a bit of poking about:

https://github.com/golang/talks is a bunch of talks.

https://github.com/golang/tools/tree/master/cmd/present is the present command.

http://godoc.org/golang.org/x/tools/present is the documentation.

Re:Docker without Docker by ricardobeat on Sunday April 26, 2015 @05:47PM (#9443416)
Be aware that the generated slides are not very mobile-friendly. There are much better tools out there.
Re:Docker without Docker by orbitbot on Sunday April 26, 2015 @05:03PM (#9443254)
Reveal.js is another fairly common alternative, unless you're looking for the exact visual effect (which could probably be achieved somehow). http://lab.hakim.se/reveal-js/

Sources: https://github.com/hakimel/reveal.js/ Hosted: http://slides.com/

Re:Docker without Docker by hultner on Monday April 27, 2015 @05:43AM (#9445214)
Sorry for slightly offtopic but what do you use to generate slideshows like this from the .slide file? I'm kinda fed up with creating powerpoints every week for meetings, would be great if there's a way to generate these locally. Is it possible to create templates? Would probably be more or less required to keeping the organization profiling.
Re:Docker without Docker by ljlolel on Sunday April 26, 2015 @07:08PM (#9443657)
Cool, I wrote a similar post about using docker images without containers (chroot instead) http://blog.terminal.com/docker-without-containers-pulldocke...
Re:Docker without Docker by thirdtruck on Sunday April 26, 2015 @02:27PM (#9442736)
Looking forward to reading that! I was only introduced to Docker on Monday, my first day at my new job, but I've already enjoyed the adventure of incorporating it into our deployment process.
Re:Docker without Docker by salimmadjd on Sunday April 26, 2015 @01:13PM (#9442443)
are there any videos from the workshop these slides are from?
Re:Docker without Docker by chimeracoder on Sunday April 26, 2015 @01:19PM (#9442461)
Unfortunately not, though there's been a lot of interest in this talk, so I'll likely be presenting it again. And even in the last couple of months there's been a lot of development in the containerization world, so there's a even more to include.

If anyone's interested in hosting and/or filming an updated version of this talk, drop me a line! My email is in my profile.

Re:Docker without Docker by snambi on Monday April 27, 2015 @12:06AM (#9444336)
Great Post. Excellent presentation. If possible do an youtube video of the presentation.
Re:Docker without Docker by k_sze on Sunday April 26, 2015 @08:32PM (#9443861)
The slides are buggy on Chrome on iPad. Pages jump erratically as I drag the pages.
Re:Docker without Docker by gonzo on Sunday April 26, 2015 @09:09PM (#9443936)
The slides are also buggy on Safari. Only the first three will display.
Re:Docker without Docker by jlhawn on Sunday April 26, 2015 @01:06PM (#9442411)
The slides mention that Docker containers have hashes. This is not the case. In fact, it's probably one of the biggest user misunderstandings of Docker. Container IDs and Image IDs are not SHA hashes. Even though it may look like it they are actually just randomly generated 256-bit hex-encoded unique identifiers.

Since the slides also mention that you can use Docker images with a systemd-nspawn/machinectl setup it would be great if they soon supported the v2 Docker Registry and image format which actually does use content-addressable hashes for images.

Re:Docker without Docker by chimeracoder on Sunday April 26, 2015 @01:15PM (#9442450)
> Container IDs and Image IDs are not SHA hashes.

Thanks for catching that - I've updated it.

> Since the slides also mention that you can use Docker images with a systemd-nspawn/machinectl setup it would be great if they soon supported the v2 Docker Registry and image format which actually does use content-addressable hashes for images.

I haven't used the v2 registry, so I don't know if systemd (machinectl) supports this yet, but I imagine they will soon if they don't already.

Re:Docker without Docker by sigmonsays on Sunday April 26, 2015 @05:22PM (#9443318)
Use LXC and LXD. It's the best of both worlds. Docker is very limiting and already falling short in features. For instance daemon must run as root which sucks. LXC supports unprivileged namespaces so all users of a system can have their own set of containers. Docker insists on being the parent process, That means when docker dies, so do all your containers.. This is really bad...
Re:Docker without Docker by ebiester on Sunday April 26, 2015 @05:48PM (#9443423)
How do you get boot2LXC working? Any docs, or does everyone have to DIY it all again?

Is there an ecosystem around LXC that provides things like Flynn?

I can do it all myself, but I can't do it, my development job, and be home for dinner at night. Like most tools today, the value is in the ecosystem, not the tool itself.

Re:Docker without Docker by tobbyb on Sunday April 26, 2015 @09:00PM (#9443912)
LXC is generic container technology like KVM OR Xen are generic virtualization technologies. LXC virtualizes the OS environment and gives you lightweight containers that you can seamlessly transition your VM workloads to, or use as a lightweight portable alternative to VMs, so its use case is general and not a narrow focus on paas or deployment centric technology.

Users can then decide how they want to deploy. Docker takes that base container and adds layers of aufs, constrains the container OS template to single app by modifying the container OS's init, gives you the dockerfile and focuses on deploy centric functionality with immutability idempotency etc, and this makes it much more complex to use than LXC. Its a use case built on Linux containers, not containers itself.

LXC is not 'low level kernel capabilities' [1] as Docker misleadingly refers to it on it's website. This has resulted in a lot of confusion about LXC in the Docker ecosystem with folks thinking its 'difficult to use' or 'just low level stuff'. A tad unfair to LXC given Docker was based on it till 0.9 and knew exactly what it was, and is as accurate as referring to docker or nspawn as low level capabilities.

That would be kernel namespaces and cgroups that LXC uses to give end user containers, like Docker uses post 0.9 directly with libcontainer and systemd-nspawn uses for its containers.

Docker builds on containers to deliver additional functionality. There is an additional cost in complexity but if that is your use case the trade off may be worth it, but for other use cases the complexity may be overkill.

You can simply make a VM image of LXC installed and you have boot2lxc, the vast ecosystem of orchestration technology that works in VMs and systems works in LXC, you don't need specific tools to be designed just for LXC. its not opinionated or exclusive like the tools built around the Docker ecosystem that are finely focussed on a specific use case and typically support Docker only.

[1] https://linuxcontainers.org

Re:Docker without Docker by rdtsc on Sunday April 26, 2015 @09:54PM (#9444049)
> A tad unfair to LXC given Docker was based on it till 0.9 and knew exactly what it was,

I had noticed that too initially.

They had to minimize it because otherwise people would just say "why not just use LXC, what do I need the whale for?".

From the marketing standpoint it had to be "yeah that is complicated low level bearded guy stuff, you need cool easy slick stuff we provide".

Re:Docker without Docker by ebiester on Monday April 27, 2015 @10:12AM (#9446388)
So, you're saying it's about a month or six to replicate the conveniences that docker has provided for our organizations?

Docker isn't anything special. There's nothing that is magical or revolutionary there, but what you describe is quite a bit of work to replicate the ecosystem. That's time that could be used creating novel value.

Re:Docker without Docker by justincormack on Monday April 27, 2015 @06:37AM (#9445374)
Not sure saying LXC is "generic" is helpful either. It is opinionated that you should be virtualizing the whole OS environment, like Docker is (fairly) opinionated that you should not be.

I think some of the confusion arose as people used to use LXC as a generic term for the container technologies as well as the product, before there were any other products. namespaces+cgroups is not such a nice name. And using "linuxcontainers.org" as the website does not make it clearer.

Re:Docker without Docker by falcolas on Sunday April 26, 2015 @01:37PM (#9442522)
You may want to mention that the network and disk isolation are not what someone from Docker would expect by default.

It uses the docker equivalent of "net=host" (which provides better performance at the cost of isolation), and the disk is pointing at a shared "changeroot" on disk, instead of at a layered FS.

Both of these can be better isolated with natted interfaces and a `btrfs` (which has its own reliability issues) layered image, but they are not what you expect by default.

Re:Docker without Docker by mverwijs on Sunday April 26, 2015 @03:49PM (#9443030)
> At its core, your OS is just a bunch of files

"But, you NEED to run the installer on that (bare metal) server!" Nope, I can just boot from knoppix (remember?) and mount the disk and run debootstrap on it.

Every so often I run into programmers and sysadmins that believe these things are a kind of magic. They're not. They're just files on a disk.

Love this presentation. Thank you!

edit: s/mount knoppix/boot from knoppix/

Re:Docker without Docker by e12e on Sunday April 26, 2015 @06:11PM (#9443492)
Very interesting. Almost got ready to up my systemd-hate on slide 19: "machinectl -H [email protected]:debian-tree"[1] -- but calmed down and had a look around and saw that it just uses ssh, not some pottering pixiedust kerberos abomination...:

http://www.freedesktop.org/software/systemd/man/machinectl.h...

With proper handling of access (allowing unprivileged users to start containers) along with --bind for the home directory, this could be a viable alternative to Debian's schroot [s].

There's also a complimentary lwn article from 2013 that's worth reading:

https://lwn.net/Articles/572957/

That also contains a quote that explains a bit about systemd (if read maliciously): "As part of the development of systemd, the team looked at various kernel features to see if they were relevant to the project."

At least with this (containers w/log handling etc) we get something for our complexity. Still, having had two seperate machines fail to boot/even come up with a text console with some sensible errors - I'm far from sold on the idea that I want all these features in PID 1.

[1] changed user "foo" to "root" to be a little more clear. Maybe "user1" would work as well - but systemd (unlike lxc etc) requires root?).

[s] https://wiki.debian.org/Schroot

Reminds me that I should probably make write-up of how I set up schroot to allow "source"-access for root, and automagic sessions for a standard user backed by lvm -- the documentation is a bit dense.

Re:Docker without Docker by vezzy-fnord on Sunday April 26, 2015 @12:54PM (#9442355)
tl;dr It's basically a tech demo for systemd, and the systemd-nspawn tool in particular (which you might recall recently gained Docker format support).
Re:Docker without Docker by istvan__ on Sunday April 26, 2015 @01:57PM (#9442612)
Yep, and not particularly interesting. It is a catchy title and some showcase for Systemd.
Re:Docker without Docker by lsc on Sunday April 26, 2015 @02:41PM (#9442805)
Much like docker.
Re:Docker without Docker by istvan__ on Sunday April 26, 2015 @03:52PM (#9443039)
I am not sure what you are talking about. I am talking about this:

"Within 9 days, all of the top 10 Linux distributions will use systemd by default, or descend from one that does." https://chimeracoder.github.io/docker-without-docker/#1

Re:Docker without Docker by mkhpalm on Sunday April 26, 2015 @04:56PM (#9443223)
What they mean is when the slides were made, Debian 8 was about to be released in "stable" with systemd. With debian 8 released the only oddball is ubuntu with their own early fork of systemd called upstart. It means from this day forward the things you see in the demo are already or inevitably available on every install of linux. You don't need to install anything special to do what he's doing there.

http://upload.wikimedia.org/wikipedia/commons/5/58/Linux_Dis...

Re:Docker without Docker by baghira on Sunday April 26, 2015 @05:40PM (#9443388)
1. Upstart is not a fork of systemd, and was started a fair amount of time before systemd. 2. Ubuntu 15.04 just shipped with systemd as the default init system (although installing "upstart-sysv" the system should revert to using upstart).
Re:Docker without Docker by rogerbinns on Sunday April 26, 2015 @07:53PM (#9443760)
Note that in the Grub boot menu you can also choose whether Ubuntu 15.04 boots with upstart or systemd. Both are functional.

Thankfully that saved me when systemd couldn't grasp the concept of a btrfs volume being spread over two disks (raid 0).

Re:Docker without Docker by istvan__ on Tuesday April 28, 2015 @07:42PM (#9455770)
This is exactly my problem with systemd. It exposes new problems and issues while does not provide the same functionality that software it is replacing.
Re:Docker without Docker by blubbers on Monday April 27, 2015 @01:27AM (#9444502)
really? i have that exact setup except with three striped disks, it works fine
Re:Docker without Docker by rogerbinns on Monday April 27, 2015 @11:06AM (#9446739)
Gory details are at https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/14478...

It actually mounts root correctly, but them fails to mount home which has exactly the same details except a different subvol parameter.

Re:Docker without Docker by digi_owl on Tuesday April 28, 2015 @11:39PM (#9456366)
Systemd seems to have ongoing problems with mounting...
Re:Docker without Docker by rogerbinns on Thursday April 30, 2015 @05:16PM (#9467707)
In this case it would perfectly if it just tried to do the mount, exactly as written in fstab. Instead it tries to be clever and ends up outwitting itself.
Re:Docker without Docker by jqm on Sunday April 26, 2015 @05:03PM (#9443255)
"inevitably available on every install of linux"

s/every/most.

Slackware and a few others still do not use systemd and quite possibly never will.

Re:Docker without Docker by snaky on Sunday April 26, 2015 @11:29PM (#9444261)
Gentoo supports both ways - with or without (using eudev instead of udev) systemd.
Re:Docker without Docker by tobbyb on Sunday April 26, 2015 @08:18PM (#9443830)
This is what normal LXC containers has always done. Systemd nspawn does not yet provide a toolset to wrap these capabilities like the LXC project. Things like userland tools, library of OS templates for containers, networking, features like unprivileged containers that allow non root users to run containers etc.

Lennart Poettering has spoken about containers and btrfs subvolumes and easy snapshots, this could be the direction systemd goes in future for managing the OS with apps in btrfs subvolume containers, with rollback, management etc so this seems like it may mature fairly fast, except unprivileged container support which Lennart does not seem to like.[1]

[1]https://plus.google.com/+LennartPoetteringTheOneAndOnly/post...

Re:Docker without Docker by markbnj on Sunday April 26, 2015 @01:11PM (#9442433)
As a heavy docker user who only has a couple of years of focused linux experience I found this fascinating, even if you weren't quite ready to post it. Thanks for the slides.
Re:Docker without Docker by russell_h on Sunday April 26, 2015 @02:28PM (#9442738)
This is almost exactly how we run the Ironic provisioning agent that supports Rackspace OnMetal. We export use Docker to build and export an image, then use CoreOS + systemd-nspawn to run it across every unprovisioned machine.
Re:Docker without Docker by mkulke on Monday April 27, 2015 @02:56AM (#9444724)
Funny, we're running the rackspace-monitoring-agent on CoreOS like that. however we do docker pull/extract before running systemd-nspawn, if i got it right the systemd-tooling can handle docker images as they are, which would be nice.
Re:Docker without Docker by monochromatic on Sunday April 26, 2015 @03:42PM (#9443008)
Anybody else having issues navigating? I'm on Firefox.
Re:Docker without Docker by po1nter on Sunday April 26, 2015 @03:51PM (#9443037)
It's works fine here using the right arrow on Firefox Nightly 40.0a1 running on Ubuntu 15.04.
Re:Docker without Docker by monochromatic on Sunday April 26, 2015 @04:41PM (#9443184)
Ha, it didn't occur to me to use the keyboard.
Re:Docker without Docker by coldtea on Monday April 27, 2015 @01:29AM (#9444504)
What I find incredible is that the same exchange takes place on HN every single time a web slideshow is posted...

Isn't trying the arrow keys / keyboard navigation an instictive thing to do?

Re:Docker without Docker by monochromatic on Monday April 27, 2015 @11:07AM (#9446750)
> Isn't trying the arrow keys / keyboard navigation an instictive thing to do?

Evidently not. My position is that a web page that is impossible to navigate via mouse is broken.

Re:Docker without Docker by dm2 on Sunday April 26, 2015 @06:24PM (#9443533)
Horizontal mouse scrolling is also broken on Chrome, doesn't load more than 3 slides.
Re:Docker without Docker by zobzu on Sunday April 26, 2015 @02:25PM (#9442728)
that's a good intro to systemd-nspawn and machinectl - which happen to be much nicer to use than docker (yet transparently work with docker images if you want that). its also easier to install since you generally "already have it" and there's no setup.

There's a few things it doesn't do (neither docker, or lxc for that matter) - yet at least - such as mounting fses before container start or manage upgrades.

Re:Docker without Docker by XorNot on Sunday April 26, 2015 @05:51PM (#9443434)
I'm not sure how you'd manage upgrades - that's an OS function, but for nspawn you'd just write your unit file to Require some *.mount files before boot.
Re:Docker without Docker by zobzu on Monday April 27, 2015 @04:14AM (#9444938)
updates generally require a daemon restart (and in this case perhaps a container restart), if you couple it with requisite mounts, the whole machinery has to care for mounts, upgrades and restarts altogether

I suspect it could be hacked somehow with service files, too

This is particularly significant if you use something like btrfs snapshots with a base mount and child mounts, or overlayfs and invalidate inodes during upgrades, instead of a dumb-ish "yum upgrade/apt-get upgrade/etc"

The main difference is that in this case the update is at the mount / container level when propagated from the base image.

Some (most) others also do that with image versions and a full image swap.

Re:Docker without Docker by Twirrim on Sunday April 26, 2015 @03:11PM (#9442902)
We're back to chroot jails again?
Re:Docker without Docker by zmonkeyz on Sunday April 26, 2015 @05:07PM (#9443272)
Everything that is old is new again. For full disclosure i went from support Linux/Solaris (sysadmin) to mainframe middleware (CICS/WebSphere app server).
Re:Docker without Docker by Twirrim on Sunday April 26, 2015 @06:45PM (#9443609)
Yeah. Back when I started as a sysadmin chroot jails with bind, qmail etc were all the rage.

I've seen them used in good and bad ways, but mostly the former. It's good to see something that actually solves real problems coming back in to use again. Added bonus, it's an extremely mature (from a tech perspective) way of doing things. Chroot jails have been around for decades.

Re:Docker without Docker by lobster_johnson on Sunday April 26, 2015 @03:56PM (#9443050)
This slideshow is impossible to read on an iPad; the scrolling isn't synchronized with the width of the screen, and attempting to align a page makes it jump to another. Any solutions?

Edit: Apparently, if you don't touch-move but only tap, you can keep it for, getting out of sync.

Re:Docker without Docker by seiferteric on Sunday April 26, 2015 @05:55PM (#9443450)
Somewhat unrelated. Is there a way to ship a container image with just a "diff" of the default image. Say I build a container with ubuntu 14.04 + some packages installed with apt. I would like to be able to "export" the filesystem, but only the files that are not present in the base os image. The reason I would like this is that I would like to use docker (or systemd-nspawn) to run containers on an device that will not always have access to the internet. It would be nice to be able to add a new package to that device, and not be multi 100 MBs. As long as I can guarantee that the base image is present on the device, I should not need to include it in the image.
Re:Docker without Docker by TheDong on Monday April 27, 2015 @11:42AM (#9446989)
You can hack this up yourself using the output from 'docker save'. 'save' produces a tarball which contains layers, and you can delete the layers from your 'save' tarball that you know you already have on the destination.
Re:Docker without Docker by cpitman on Monday April 27, 2015 @01:12AM (#9444473)
As long as you are pulling images from a docker registry, this should automatically happen.
Re:Docker without Docker by seiferteric on Monday April 27, 2015 @11:18AM (#9446829)
Ya the point is it won't have access to a registry. I would like to be able to ship docker "packages" that have everything they need, but not have a lot of duplicate data (the base os image) in each package. I should be able to have the base image as its own package for example, and the other packages just have the "diff" files that they need.
Re:Docker without Docker by 16bytes on Monday April 27, 2015 @09:37AM (#9446146)
Last I checked. Docker will pull a delta when resolving new containers, but will export the entire thing if you want something for offline usage.

I had the same question as OP and didn't find anything that works as he described it when I looked 6+ months ago.

Re:Docker without Docker by gosub on Sunday April 26, 2015 @03:40PM (#9442996)
So we should also add Docker to the chimera that systemd is becoming?
Re:Docker without Docker by Gigablah on Sunday April 26, 2015 @08:59PM (#9443910)
It's already in there...
Re:Docker without Docker by haddr on Sunday April 26, 2015 @01:28PM (#9442493)
What is the actual difference here between using debootstrap and LXC?
Re:Docker without Docker by zobzu on Sunday April 26, 2015 @02:28PM (#9442742)
debootstrap just populate a directory with files from the debian/ubuntu distros, LXC uses it, everyone who wants to create/boot a debian image that they create use it.

One major difference between systemd-nspawn and LXC is how simple and reliable systemd-nspawn - in particular the guest OS/image has to run systemd as well which is what provides the integration.

Eventually, if you wanted, you could mix and match the tools just fine.

Re:Docker without Docker by istvan__ on Sunday April 26, 2015 @01:58PM (#9442618)
Isn't debootstrap specific to Debian while LXC is not?
Re:Docker without Docker by dorfsmay on Sunday April 26, 2015 @09:22PM (#9443970)
@chimeracoder:

First thanks, this was really interesting.

Sorry, I must not be that bright, I cannot guess your email from your username :-( (and I don't have a tumbler login, and you haven't enable dm from strangers on twitter), but I wanted to point at that you have a typo on slide 9, s/ journactl/journalctl/.

Re:Docker without Docker by yesbabyyes on Sunday April 26, 2015 @04:16PM (#9443104)
Combining this with IPFS could be pretty cool!
Re:Docker without Docker by mmgutz on Sunday April 26, 2015 @03:32PM (#9442970)
I haven't used Docker myself. So what value add does Docker provide?
Re:Docker without Docker by ekimekim on Sunday April 26, 2015 @11:50PM (#9444294)
* Ease of use * Publicly available image registry * Dockerfiles

I should stress that last point - I dislike certain aspects of docker, but I love their system for building images. I want to somehow adapt it for building bare metal images.

Re:Docker without Docker by rodgerd on Tuesday April 28, 2015 @03:34AM (#9450897)
> * Publicly available image registry

I am unconvinced downloading system images from the Internet is a great thing overall.

Re:Docker without Docker by ekimekim on Tuesday April 28, 2015 @04:38PM (#9455001)
I somewhat agree, but it's a thing that many people see as a feature.
Re:Docker without Docker by epaulson on Sunday April 26, 2015 @07:56PM (#9443775)
What about the entries in /dev? Is mknod not a thing anymore, or do I not need to have /dev entries in my container root filesystem?
Re:Docker without Docker by Sanddancer on Monday April 27, 2015 @12:28AM (#9444377)
It's systemd based, so it'll be bringing udev along for the ride.
Re:Docker without Docker by octatoan on Monday April 27, 2015 @07:22AM (#9445511)
I'm very sad that Hacker School had to change its name (for entirely valid reasons, although it's sad they're there). "Recurse Center" makes it sound like some . . . creationist think-tank.
Re:Docker without Docker by faizshah on Sunday April 26, 2015 @03:06PM (#9442880)
This is interesting, any recommendations for further reading?
Re:Docker without Docker by bandrami on Sunday April 26, 2015 @01:03PM (#9442399)
What's old is new. You're describing containers I think.
Re:Docker without Docker by miah_ on Sunday April 26, 2015 @02:36PM (#9442782)
See: User Mode Linux, available since somewhere around 2002 or 2003.

http://user-mode-linux.sourceforge.net/ https://en.wikipedia.org/wiki/User-mode_Linux

Re:Docker without Docker by icebraining on Sunday April 26, 2015 @03:30PM (#9442967)
Not really the same, since that runs a full kernel for each "container". OpenVZ is a better example (and is, in fact, the precursor of LXC).
Re:Docker without Docker by rwmj on Sunday April 26, 2015 @01:30PM (#9442498)
Or chroots, jails, libvirt-sandbox, etc etc.
Re:Docker without Docker by XorNot on Sunday April 26, 2015 @05:52PM (#9443439)
chroot's aren't namespaced, which is a big important difference. Being able to kill the entire container by killing it's init process (and keep it's processes out of the host namespace) is a huge deal.
Re:Docker without Docker by otterley on Sunday April 26, 2015 @06:28PM (#9443548)
Most of these implementations actually kill all processes in the namespace, not just init. First, there may not be an init (the root process could be the service, which is actually a best practice with respect to containers); and second, the signal may not be propagated to its children, especially if a non-trappable signal (e.g. SIGKILL) is sent.
Re:Docker without Docker by asdfaoeu on Sunday April 26, 2015 @06:57PM (#9443637)
A sigkill is sent to everything in the namespace if the init/root process dies anyway. So effectively it is auto propergated.
Re:Docker without Docker by bandrami on Sunday April 26, 2015 @10:44PM (#9444166)
chroot's aren't namespaced

Sure they are. If you chroot apache to /var/www, then /var/www is now / in the chroot'ed namespace.

Re:Docker without Docker by regularfry on Monday April 27, 2015 @03:13AM (#9444774)
Yeah, and if "everything is a file" was actually true, then the filesystem would be the only namespace you needed to care about.

It isn't.

Re:Docker without Docker by synaesthesisx on Sunday April 26, 2015 @08:07PM (#9443803)
I feel like HN really loves docking.
Re:Docker without Docker by anonbanker on Sunday April 26, 2015 @05:38PM (#9443381)
So, this is just a systemd commercial pretending to be about docker?
Re:Docker without Docker by eugeneionesco on Sunday April 26, 2015 @07:29PM (#9443698)
Well it says "without Docker" in the title so not sure what where you expecting...
Re:Docker without Docker by anonbanker on Sunday April 26, 2015 @10:31PM (#9444138)
anti-systemd comment buried to the bottom of the page. worth burning karma for!