Reminded me of people making docker containers out of this: https://github.com/nemasu/asmttpd eg. https://hub.docker.com/r/0xff/asmttpd/ 7KB web server container.
Are there any non-academic reasons to do use such servers?
A 1 KB Docker Container
41–50 of 75 posts
Re: A 1 KB Docker Container
#42As 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...
Re: A 1 KB Docker Container
#43Earlier 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!)
Depends on several other variables. If you use default docker options, you'll be creating a veth pair per container. You might run into a limit there at around 1024 containers. You also might hit ulimit if your system isn't well configured. If you use --net=none, you won't hit that issue, and you'll probably be able to manage quite a few The resource usage ends up being roughly 4 bytes rss for the executable in the c…
Re: A 1 KB Docker Container
#44Earlier quoted context omitted.
If you base off alpine, you can get useful containers quite a lot smaller than 100MB. One example i use is an agent i deploy to kubernetes clusters to do some security scanning. The scripts are ruby and the image clocks in at 9MB compressed https://hub.docker.com/r/raesene/kaa-agent/tags/
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...
Re: A 1 KB Docker Container
#45Re: A 1 KB Docker Container
#46The whole idea is to compile a go program and put it into a docker container and have it listening to the network for a single HTTP endpoint.
It is interesting because an useful images come to be less than 6MB :)
Link to the project: https://github.com/siscia/effe-tool
Re: A 1 KB Docker Container
#47Re: A 1 KB Docker Container
#48Replace -d with -D for macOS
Re: A 1 KB Docker Container
#49[0]: https://github.com/kubernetes/kubernetes/tree/master/build/p...