8 ms·
Fully static, unprivileged, self-contained, containers as executable binaries
- fwip 8y agoHow does this differ in goals or intent from Singularity?
- peterwwillis 8y agoOne is a big project that allows anyone to use it (mainly for scientific work), one is a POC/hack that depends on Go programming.
- homerowilson 8y agoThat's funny since singularity is now also written in Go!
- nerpderp82 8y ago? Please explain.
- bryanrasmussen 8y agoIt is a common joke construct in english to use the one is a X, the other is Y to confound user expectation. (although X and Y can be reversed for purposes of making the joke more funny) The Joke starts with a question in the format what is the difference between A & B where one of these A is to be the Butt of the joke. The answer then says one is X where X is a number of qualities, probably laudable, obviously describing A, then the punchline is the description the other is Y with all negative qualities in such a way that you realize that the previous description of X which you thought was referring to A was actually referring to B and the negative Y is a particularly mean spirited description of A. One common variant if you have the negative Y values described first you will just say 'Well one is Y (all negative values) and the other one is A (just repeating the name)' The comment was written in such a way that it functioned like one of those jokes. I unfortunately cannot think of one of these jokes right now, but for an example of how the reversed version works you might have something like this: What is the difference between X and Ted Bundy? Well one is an insane Republican murdering abuser of women, and the other is Ted Bundy. No particular person was thought of as being represented by X when this example joke was formulated. You can probably find some examples here https://worstjokesever.com/difference https://worstjokesever.com/difference although I wasn't able to - warning the first joke is racist.
- tripa 8y agoHere's a more neutral classic: What is the difference between USA and USB? One connects to all of your devices and accesses the data, the other is a hardware standard.
- bryanrasmussen 8y agothanks, I unfortunately couldn't think of any examples even though I generally like that format of joke.
- StavrosK 8y ago"What's the difference between a lawyer and a cockroach" or any other disliked profession/ethnic group/sex/person and animal.
- StavrosK 8y agoThe grandparent's joke misses the mark, though. It should have been "singularity is now used for science too!" to make it work. As it stands, he just piled on to the expected list of benefits of singularity without the necessary subversion of expectation.
- TheDong 8y agosingularity requires suid components; it is not true unprivileged containers. singularity must be installed by an administrator of the system, binctr doesn't care about having privileged components installed. binctr is a lot smaller and more grass-roots as well, which could be good or bad. It's possible singularity wishes to also have truly unprivileged containers, but if that is one of its goals, it currently fails at it.
- devereaux 8y agoThen once one of the static libraries has a major bug, a major catastrophe happens, and hilarity ensues. Use static linking with parsimony and intent. It is a double edge sword. Don't make that your default. Learn from past mistakes. That said, the concept is interesting. I would just use dynamic libraries inside. Space and speed issues are premature optimizations.
- AnIdiotOnTheNet 8y ago> Learn from past mistakes You mean like DLL hell, and the Linux distro fragmentation mess? History has shown that the trade-offs of dynamic linking are often worse. Case in point: the reason containers are so popular in the first place.
- devereaux 8y agoThe only reason dynamic libraries are worse (beside speed) is the dependency hell. Put the dynamic libraries INSIDE the container and you can upgrade them when/if you want, while nothing will be broken during a systemic upgrade where you don't chose to update them.
- tedivm 8y agoIn an environment like this the only difference between static and dynamically linked libraries is that the dynamically linked ones can be upgraded without needing to recompile. Other benefits- such as not needing to ship as much data- disappear, and the negatives (such as speed) remain. In this context then there doesn't seem to be much of a benefit towards dynamic linking. Most people are going to rebuild the container completely rather than enter it to upgrade a library, or if it's a distributed program they're just going to grab the latest version- being able to upgrade components individual is not a use case that I see being all that important.
- devereaux 8y agoThen I guess we have different opinions, because I would only update the parts of the container that need updating, and I wouldn't touch what isn't broken - just like how I do a apt-get upgrade more often than a apt-get dist-upgrade: because even if it should all work fine in theory, in practice it doesn't. I am mostly interested by gains in security, gains in maintainability, and gains in simplicity. Dynamic libraries reduce the number of parts that need to be managed, reducing overall complexity. Also, if I remember correctly, UWP apps in windows are managed a bit like that, with the equivalent of a xdelta (binary diff) Being able to update just one or a few libraries would be handy in other cases - not just critical exploits. On top of my head, the first use case I see is old apps, those which have deployed say years ago, where the compilation scripts/recipe/call it whatever you want have been lost and the employees left, and you need to change one piece of the whole for whatever reason. There's totally a place for static binaries, but it is a very specific one, where you have special constraints (ex: when I update a remote server, I want to have a static busybox)
- da_chicken 8y agoEvery time I see things about containers, I can't escape the feeling that they're a tool for developer convenience that will result in nightmares for security, maintenance, and life cycle system administration.
- testvox 8y agoContainers are usually pushed from the ops side. I don't see how they make things more convenient for developers at all.
- empath75 8y agoDeveloping in containers is massive improvement. Just in terms of having standardized repeatable build environments.
- mikekchar 8y agoWhen making this statement, it would be helpful to add the "in comparison to" part. People who can't see the benefit of containers may actually live in a world where they have standardised repeatable build environments without containers (it is possible after all). For me containers are convenient for the task of specifying the repeatable build environments. It is also useful for caching those build environments and distributing the cached artefacts in a versioned way. To be honest, if you are working with only 1 or 2 build environments, I don't actually find it particularly more convenient that setting up something without containers. Often I find it even wasteful because you usually select fairly large base images (hundreds of megs) even when you only need a few things. You can build a really streamlined image, but it's a fair amount of work. However, if I have to coordinate many "microservices" that are talking together via TCP/IP and implemented in several different versions of several different technologies, it's a life saver. Normally I try to avoid this circumstance for reasons I wish were obvious to others. But of course we know that it is not obvious to others and so I appreciate being able to use containers ;-)
- ElijahLynn 8y agoWhat are the use cases for this? I was expecting more in the readme around use cases or real world examples.
- ph0rque 8y agoOne step closer for my totally pointless, no real use case dream of running a container in a browser tab.
- rytill 8y agoNo, that would be awesome.
- drugme 8y agoAwesome or not - know of any use cases?
- webmaven 8y agoPerhaps... a sandboxed webmail[0] app capable of sending and receiving encrypted (or cryptographically signed) emails without being vulnerable to client-side attacks stealing your private key(s) or the cleartext? There may be similar use-cases for tamper-proof (or at least tamper-evident) browser-based games. [0] I'm specifying a webmail client in the browser rather than a desktop email client.
- yjftsjthsd-h 8y agoDepending on details... Running native software in a sandbox in a browser has some advantages for security and convenience. Also, it completes the circle of "the browser is an OS":)
- rytill 8y agoIt would be cool to run a machine learning model server written in Python and start a connection to it with JS, all in a tab.
- asadlionpk 8y agoOn a similar note, is there a way to package a container into an executable for all platforms (including for macOS, Windows). Like Electron but for containers?
- zozbot123 8y agoVMWare or VirtualBox image running a unikernel? I mean, the whole point of containers is that they are OS-dependent...
- voltagex_ 8y agoInteresting idea. Hyper-V is sometimes available on Windows, Hypervisor.framework on OS X, bhyve on FreeBSD and fallback to qemu if all else fails?
- marmaduke 8y agoI think only plain Qemu can run unprivileged
- voltagex_ 8y agohttps://github.com/linuxkit/linuxkit/blob/master/docs/platform-hyperv.md https://github.com/linuxkit/linuxkit/blob/master/docs/platfo... looks promising
- techntoke 8y agoAll much slower than native containers. My Docker daemon on Linux doesn't take 15 plus seconds to start and dynamically utilizes my CPUs and memory from the host.
- nwmcsween 8y agoSame with a hypervisor? A hypervisor could start as fast as a container, the only issue is having two kernels and the overhead it entails.
- detaro 8y agopreviously (11 days ago, 111 comments): https://news.ycombinator.com/item?id=18745182 https://news.ycombinator.com/item?id=18745182
- throwaway2048 8y agowe might even call them processes! ducks
- darren0 8y agoSomewhat related, rootless docker and kubernetes https://github.com/rootless-containers/usernetes https://github.com/rootless-containers/usernetes
- gravypod 8y agoWould be interesting to use to get Docker in Docker running for CIs.
- oso2k 8y agoI don’t know any of the details (apologies!) but some OpenShift devs I’ve talked to and work with at Red Hat do this for their work. It seems some of the details are here [0]. [0] https://github.com/openshift/origin/blob/master/CONTRIBUTING.adoc#develop-and-test-using-a-docker-in-docker-cluster https://github.com/openshift/origin/blob/master/CONTRIBUTING...
- deleted 8y ago[deleted]