Re:Tiny Linux distro that runs the entire OS as Docker conta...
by dkarapetyan on Saturday April 29, 2017 @07:37PM
(#14229409)
Sounds like then you should learn what a chroot is. All the existing linux platforms already provide the solution to your exact problem with much less overhead than docker.
[ Parent
| on HN ]
Re:Tiny Linux distro that runs the entire OS as Docker conta...
by chubot on Saturday April 29, 2017 @11:46PM
(#14230068)
I agree this is possible, but the tools are somewhat obscure and slow. You can debootstrap in a chroot and then install packages, but it takes a long time, and likely re-downloads hundreds of megabytes packages you already have on the system.
I don't like Docker, but I think it does some differential compression with the layers when you are modifying the image. So you don't have to re-do this install from scratch.
You may also run into issues with user IDs and various system config files in the chroot. Configuring the service with flags, env vars, and config files is a bit of a pain.
Docker is essentially a glorified chroot... I've essentially tried to rebuild it, and it is unfortunately a lot of work.
Re:Tiny Linux distro that runs the entire OS as Docker conta...
by coldtea on Saturday April 29, 2017 @10:27PM
(#14229885)
Only that chroot wont also run on the development machine, running a totally different OS.
Re:Tiny Linux distro that runs the entire OS as Docker conta...
by concede_pluto on Sunday April 30, 2017 @02:39PM
(#14233137)
This is a self-inflicted problem. 787 engineers don't have to test their work on a Learjet.