Live data from Hacker News

How Container Filesystem Works: Building a Docker-Like Container from Scratch

labs.iximiuz.com

31–34 of 34 posts

Re: How Container Filesystem Works: Building a Docker-Like Container from Scratch

#31

Earlier quoted context omitted.

Docker is a genius idea which looks obvious in retrospect, but someone need to invent it. Docker is more than just chroot. You also need: overlay file system; OCI registry and community behind it, to create thousands of useful images. And, of course, the whole idea of creating images layer by layer and using immutable images to spawn mutable containers. I don't actually think that you need network or process isolatio…

What I always wondered is why qcow2 + qemu never gave rise to a similar system, they support snapshots/backing-files so it should be possible to implement a system similar to docker? Instead what we got is just this terrible libvirt.

The short answer is docker concentrated on files, whereas other VM oriented tech concentrated on block devices.

Dockers is conceptually simpler for devs and the layer use case but has huge performance issues which is why it never went anywhere for non-docker classic IT type use cases.

Re: How Container Filesystem Works: Building a Docker-Like Container from Scratch

#32
post #2

We had chroot since 1979, nobody managed to build a docker like wrapper for chroot which do not require netns?

Bocker, docker in 100 lines of bash https://github.com/p8952/bocker

Some of Docker in 100 lines of bash - Linux only :-)

Re: How Container Filesystem Works: Building a Docker-Like Container from Scratch

#33
post #29

Whenever topic of Docker inner-workings comes up, I am always reminded by this video https://www.youtube.com/watch?v=HPuvDm8IC-4

Absolutely epic. Her career can be divided into two halves, before she did this talk and afterwards. What a crazy thing to do live on stage.

What was crazy about this? I skimmed the video and it just seems like a standard presentation

Re: How Container Filesystem Works: Building a Docker-Like Container from Scratch

#34
post #9

Earlier quoted context omitted.

Solaris Zones (follow on to Solaris Containers) was pretty amazing. https://en.wikipedia.org/wiki/Solaris_Containers

Quick note that all these things are pre-dated (by decades) by mainframe virtualization schemes such as MVS.

100%!
Post reply on HN