5 ms·
From the reddit thread 2 days ago: > The whole point of Docker containers is that they're very efficient with their resource and space usage. If you have 15 re
by the_jeremy 9y ago
From the reddit thread 2 days ago:
> The whole point of Docker containers is that they're very efficient with their resource and space usage. If you have 15 redundant frameworks pre-loaded in a container, of which you use at most 3, you're using Docker wrong.
- corndoge 9y agoIf it works and it's useful who cares
- omerh 9y agoFor multiple layers in a Dockerfile use overlayfs2 and not aufs. You will suffer from slow io
- notwedtm 9y agoI've been having issues with slow IO on some of my containers, and I'm using AUFS. What is the cause of the slowdown with AUFS? Why do they not use Overlay2 as default if AUFS has such a major issue?
- user5994461 9y agoAUFS is the only fs that was broadly distributed until recently. Now, it's been removed in the latest linux distributions because it's too buggy and unstable. Overlay was started and quickly abandoned. Only to be replaced by overlay2 that is work in progress and not wildly available yet. This article contains a bit of history on Docker filesystems: https://thehftguy.com/2016/11/01/docker-in-production-an-history-of-failure/ https://thehftguy.com/2016/11/01/docker-in-production-an-his...
- galkk 9y agoFor production - 100% agree. For playing with code - not at all.
- sundvor 9y agoThat's immediately where I saw the value of this as well.
- divanvisagie 9y agoI agree with this sentiment. That said, someone is totally going to deploy this.
- Uehreka 9y agoAs someone who has wasted hours setting up these various tools on an EC2 instance (just to play around with cool projects and experiment) this is a gorgeous constellation of utility.
- ClassyJacket 9y agoI thought the point of Docker was to compartmentalize software setups to make them portable? Who are you to say someone is using it "wrong" if people find the utility in it?
- asadlionpk 9y agoI think it's ok to have them all set up but not running. We have a 9GB+ docker image that we create containers from some 10k times per day for our users in production.
- markild 9y agoWhy? Would be interesting to hear about what your use case is, and how it works for you.
- asadlionpk 9y agoTo offer online compiler for 20+ languages. We create a temporary container for each user on our servers. Here is one of our high-traffic product: https://codepad.remoteinterview.io/ https://codepad.remoteinterview.io/ It's used by interviewers, students, teachers who need a quick place to practice and pair-program.
- wpietri 9y agoWell, I'd say the point of Docker is to make distributing and running something easy, reliable, and reasonably safe. Which is what is happening here. It is true that Docker is more space efficient than setting up whole VMs for each app. But it's a lot less space efficient than installing everything on a big server. If you are running, say, a bunch of Python apps, the lowest-space approach is making sure they all use the same set of libraries, modules, and other required resources. But harmonizing those versions is a pain in the ass, so Docker lets you easily use multiple copies of python, overlapping libraries, python packages, etc. It's true that if you were deploying this in production, you'd want to trim this back. But this is explicitly a "research environment".
- akerro 9y ago> Well, I'd say the point of Docker is to make distributing and running something easy, reliable, and reasonably safe. Which is what is happening here. No, that's http://flatpak.org/ http://flatpak.org/
- skj 9y agoyou may not think that this is what containers are for. But it's certainly how people use them, and it's echoed on https://www.docker.com/what-container https://www.docker.com/what-container
- richardwhiuk 9y agoThat seems targeted at applications, not development, and it's got much less momentum behind it.
- digi_owl 9y agoWatch it turn into a Docker rival soon enough...
- notwedtm 9y agoIt's also much easier to make "sure they all use the same set of libraries, modules, and other required resources" with smaller teams. The larger you get, the higher the chance that dependency hell will cripple the velocity of a project. Docker helps a ton in these types of scenarios.
- sp0rk 9y ago"Don't use it that way! That's not how it was intended." Good to see the hacker spirit is alive and well here.
- digi_owl 9y agoIt feels more and more like containers in general is being used as a band-aid over various underlying issues concerning inter-dependencies and conflicts between various projects within the Linux ecosystem. Why take the effort to get the kids to play nice with each other when you can lock each of them in their own room?