5 ms·
Sounds like a perfect use case for libcontainer https://github.com/docker/libcontainer https://github.com/docker/libcontainer Platforms like Sandstorm are exac
by shykes 12y ago
Sounds like a perfect use case for libcontainer https://github.com/docker/libcontainer https://github.com/docker/libcontainer
Platforms like Sandstorm are exactly the reason why we opened up libcontainer: so that others can benefit from the firehose of engineering that goes into Docker, without having to buy into the entire platform. Once the C implementation is complete it should be even easier to use libcontainer in other languages.
That said, I think some of the new Docker APIs we are working on would be a good match for Sandstorm as well. But thanks to the beauty of small, loosely coupled components, we can have that conversation some other time :)
- kentonv 12y agoHey Solomon! I'm glad you're making libcontainer, but I'm still not sure what Sandstorm would gain from it. At the end of the day, most of the work going into libcontainer is all about making containerization totally transparent to the app and supporting a wide range of Linux platform features. These are obviously key features of Docker and useful to many other uses of containers, but simply not a goal for us. E.g. I see selinux and apparmor mentioned in libcontainer's code, but Sandstorm's security model does not need nor want them. For our case, a couple dozen syscalls to set up our container is really all we need. Sandstorm's own code base actually even contains three different components that set up different kinds of containers, but we don't share code between them because there's just not much worth sharing.
- nwmcsween 12y agohttps://github.com/xemul/libct https://github.com/xemul/libct