Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So docker container ABI is basically the kernel? You just create a filesystem image and docker starts that as LXC guest. You could build a statically compiled binary and put that as /bin/init into the container image, right?


Yes! Exactly :)

You wouldn't need to save it as /sbin/init. You would just type:

    $ docker run MYIMAGE /path/to/my/static/binary
Here's the smallest image I've personally used to run a docker container: http://get.docker.io/images/busybox




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: