2 ms·
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 b
by wereHamster 14y ago
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?
- shykes 14y agoYes! 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 http://get.docker.io/images/busybox