Live data from Hacker News

A 1 KB Docker Container

blog.quickmediasolutions.com

71–75 of 75 posts

Re: A 1 KB Docker Container

#71
post #44

Earlier quoted context omitted.

On the same note I did a mariadb container that is ~12mb: https://hub.docker.com/r/jbergstroem/mariadb-alpine/ If you're into go, it's not too hard to get very small ( https://gist.github.com/jbergstroem/680cb7db6f90319dcd7666f3...

5mb still sounds like a lot, considering you could squeeze Linux 1.3 on a 1.44 mb floppy with a (compressed) rootfs... I mean does the runtime really do that much more than a full (although old) os kernel and a C library/runtime and apps?

For that I reckon you'd have to file a bug with golang.

Re: A 1 KB Docker Container

#72
post #68

Earlier quoted context omitted.

Interesting. Incidentally, > It was created to test how many containers docker can spin up What was the answer? I'd think on the order of 200-300 on a server with 64 GB of RAM. (Pure guess!)

I'll have to ask tianon to see what he says. I don't remember the number.

this thread is kind of stale - but if you'd do so and reply (you can also email me at the email in my profile) I'll appreciate it.

Re: A 1 KB Docker Container

#73
post #65

Earlier quoted context omitted.

I guess you mean something like Compose or Kubernetes. I think it's weird these things force you to use the docker runtime, personally. I would really love a more flexible definition in kubernetes of what a "resource to be ran" means. I know they support multiple container runtimes now, but what if I dont want a container runtime at all? Nomad supports raw executables to be downloaded and scheduled, which is nice( ht…

Kubernetes absolutely does not force you to use the docker runtime. In fact, there has been a lot of work to avoid this by creating the CRI[0]. Kubernetes also supports extensions like the Third Party Resource or their successor, Custom Resource Definitions. KubeVirt[1] is an example of extending resources to include VMs [0] http://blog.kubernetes.io/2016/12/container-runtime-interfac... [1] https://github.com/kubevi…

CRI looks very interesting! Thanks for the pointer.

Re: A 1 KB Docker Container

#74

Earlier quoted context omitted.

Interesting. Incidentally, > It was created to test how many containers docker can spin up What was the answer? I'd think on the order of 200-300 on a server with 64 GB of RAM. (Pure guess!)

The server hosting the article above is also running 38 other containers - databases, WordPress blogs, Jenkins (CI), Gogs (Git), etc. And it only has 4 GB of RAM.

Doesn't mean it's a good idea; Jenkins recommends 2GB. That's 50% right there.

Re: A 1 KB Docker Container

#75

As part of a competition before the last DockerCon I managed to get a container down to 69B Details: http://thebsdbox.co.uk/in-pursuit-of-a-tinier-binary-er/ Code: https://gist.github.com/thebsdbox/29e395299f89b52214b66269f5...

Nice! I did something similar a few years back as a bit of a joke at work, and best I could come up with was 345 bytes ...

    mov    rax,34 ; pause()
    syscall
Post reply on HN