Lurker News
Subversion was created because the authors were frustrated with problems in CVS[0].

What's a piece of software you find essential that you wish you could replace or rewrite?
[0]: http://svnbook.red-bean.com/en/1.7/svn.intro.whatis.html#svn...

Comments (1,500) 370 threads

Show all comments

Showing thread 4 of 370

etaioinshrdlu16 replies#
Docker.

I use it and love it every day in both dev and prod, but I also really kind of hate it.
I'll keep my complaints short.
There should not be a system-wide daemon. (Or any daemon).
It should not require root at all (no setuid either).
From outside the container, the container and its processes should be a single process (with threads). (Like glueing a bunch of processes together.)
The containers should be nest-able to arbitrary depth without performance loss (at least to say, hundreds of nestings deep.)
Docker-compose should not exist, instead it should be replaced by nesting of containers.
Basically, I think it needs to follow the UNIX philosophy better by providing simple abstractions that can be combined easily. The containers would visually look a bit more like an old virtual machine (single process) than our current containers.
These changes probably require a bunch of kernel hacking, but I think it would be worth it long-term for a cleaner architecture.
It appears there are some movements into this direction thanks to podman, but it's really not there yet, especially with nesting.
Also, it wouldn't really be a product at all but just a built-in tool on Linux systems.

GordonS3 replies#
I agree about the daemon. Podman is a daemonless alternative, though I've never used it myself.

Strongly disagree about Docker Compose though - I actually really like the ability to compose a stack of different containers together with some simple yaml.

etaioinshrdlu#
You'd still be able to compose a bunch of containers together, but it would result in a new, single container due to nesting.

It could even be compatible with docker-compose and it's yaml.

fsociety#
Haven’t used Podman in production but at home it’s a huge improvement over Docker and enjoyable to use
mceachen1 reply#
I enjoyed docker compose as well (enough to use it for PhotoStructure), but was bit by breaking changes even when I had specified a version in my docker-compose.yml.

It meant that a bunch of my beta users suddenly had broken PhotoStructure configurations because their docker-compose implementation had received a minor update. Why require a version to your configuration file and not increment it on breaking changes?
I ended up tearing out the script that helped people create their own docker-compose.yml file, and replaced the installation instructions with an annotated call to `docker run`.
And don't get me started on how janky it is to update existing containers to new images without docker-compose: there seems to only be one third-party tool to assist with this automatically (lighthouse), but is essentially abandoned. I'd love to be wrong about this, please point me to other solutions if they exist!

BrandoElFollito#
I use watchtower with docker compose and the update is seamless.
heliosfire1 reply#
Some good stuff here, however... Strong disagree on compose. I think it’s amazing.
_-___________-_1 reply#
I find people only love compose if it's the first exposure they had to container orchestration. Orchestration is a great concept but basically everything else that solves this problem solves it much better than docker-compose.
lifty#
Can you mention what are the tools that you use as alternatives to compose?
kuiro51 reply#
Strongly agree about this. Docker is conceptually on the right track, but it's fundamentally the wrong abstraction.
still_grokking1 reply#
Even I would like to tune in to Docker bashing (in this case one can actually say with confidence: "Hitler was right"[1]) the fundamental architectural problem is on the OS side.

UNIX, and especially Linux, is a monolithic design. Even such an OS is able to separate user processes form each other all system parts run by concept in the form of a "big ball of mud", with "god-like" capabilities available to them by default. Sure, some internal "barriers" have been added, and per process capability dropping has been retrofitted, but this is backwards form the architectural point of view. Cutting things in peaces after the fact is almost always way more complicated and awkward compared to designing things in a modular way form the get go.
This is related as virtualizing a modular OS is almost a no-brainer (conceptually). You just need to start additional instances of the required system servers / modules / whatever-you-call-that-parts. Compared to that virtualizing a monolith is like trying to construct a kind of Ouroboros: It needs to run itself (with an altered, usually constrained view on the 'outside' world) from inside of itself; and it can't just globally drop the "god-like capabilities" its execution context provides—like it would be possible with an external process. It needs to "hide or manipulate things in front of its own eyes" even "it" has the "all seeing eye". Or to put it even more metaphorical: "A God tries to use his divine powers to constrain his omnipotence so he can lie to himself about the things he sees, without himself ever being able to look through this jugglery". Formulated like that the architectural issue is obvious, I guess.
[1] https://www.youtube.com/watch?v=PivpCKEiQOQ , and I just learned it seems he was also a Kubernetes fan. :-)

neillyons1 reply#
I was thinking recently all these layers of abstraction is crazy. I would be simpler to write a Python web server using micro python and deploy to a server farm of esp32 micro controllers.

No idea if this is possible.

Continue this thread — 1 reply

ypcx1 reply#
For me one of the worst were Docker for Desktop on both Mac and Windows, especially when used for local Kubernetes. I fixed this with a project running Kubernetes directly on a local virtual machine(s) and local Docker (without polluting the machine with Docker for Desktop) is a bonus that comes with that[1].

[1] https://github.com/youurayy/hyperctl

rikroots#
When Docker for Desktop came out, I refused to move from Docker Toolbox. My reasoning was probably illogical but my view was that if you're maintaining a number of projects, each of which runs in their own Docker environment and some of which had duplicate container names, then having the power to start/stop different Docker engines for each just made a lot more sense to me.

I don't miss Docker.

baddox5 replies#
Docker is also essentially completely broken on MacOS and has been for years. The performance penalty on anything doing I/O is like 5x, and it tends to completely hammer my CPU. There are tons of internet discussions, so it appears to not be just me.
yjftsjthsd-h1 reply#
Isn't that inherent because Docker needs a Linux kernel, so running it on Darwin has a hard requirement on virtualization and running an entire guest operating system?
jlokier3 replies#
Virtualization and even running a guest kernel and OS isn't 5x expensive on the CPU, so the problem is not virtualization per se.

Perhaps the problem is Darwin.

Continue this thread — 3 replies

wadkar#
I thought those were (partially?) addressed (or still ongoing?) with the use of bhyve/xhvye?
the8472#
If it's a docker problem maybe you're running it with the vfs storage driver which copies every layer every time instead of using overlayfs? If not then it may be a problem with the virtualization solution, not docker itself. VM overhead shouldn't be 5x, not even for IO. Unless you're trying to mount parts of the host filesystem, that's slow with pretty much any virtualization solution, perhaps barring virtio-fs, but that's probably not supports on osx
znpy1 reply#
That's MacOS' fault, in fairness. MacOS does not support containers or the Linux abi in general so you're forced to run docker containers in a Linux VM, with all the CPU and I/O penalties.
mr_toad6 replies#
It’s MacOS’s fault for not being Linux?

Continue this thread — 6 replies

invisible#
I’ve done way too much investigation into this. They are fixing these issues finally[0] (I’m mc0 mentioned in the thread). It does absolutely suck and is mostly caused by hacks to support macOS inotify event propagation into the docker VM. They are also working on making a different system for syncing data using Mutagen[1] that should fix this completely. That being said, it is very usable today depending on the workload.

0: https://github.com/docker/roadmap/issues/12#issuecomment-652...
1: https://github.com/docker/roadmap/issues/7

alhirzel1 reply#
Give Singularity a look
walleeee#
Yep. Doesn't have a daemon or require root.
btilly5 replies#
If you want more complaints, and well informed ones at that, read https://www.linkedin.com/pulse/containers-future-ian-eyberg/.

I particularly love the quote, The kernel developers view of the docker community is that in the rare case they can actually formulate the question correctly they usually don't understand the answer.
There is only so much that you can say to clarify things to someone who is thinking about everything wrong and doesn't realize it. :-(

aloer1 reply#
That article seems overly critical about young developers that don't know it any better because they grew up on containers.

I guess I am one of those so I got to ask, is the proposed solution of unikernels something we had before but lost in favor of containers, or is it something completely new anyways?
It does look like it might be the latter so why blame developers for using containers due to lack of choice? If unikernels are better and just as easy to use then I am sure people will convert.
He blames a lot on marketing and marketing lies but his company (https://nanovms.com/) seems to make it just as hard to figure out what's going on with the apparently only option being a schedule a demo button.
Come on, I remember Docker being that fancy new thing that people at university taught themselves and to each other around ~2014/2015. That hype was well deserved and if you want to compete with that you can't just decide to brush it off as wrong and misguided.
At the risk of pointing out that I also might be one of those that the quote above is referring to, I gotta ask:
Is there a technical reason why I shouldn't be able to eventually just replace Docker with a micro or unikernel? Same or similar style of image definition, completely different runtime technology?
Isn't it up to the kernel and platform developers to build the tools to make that happen comfortably for all of us naive container users?

kubanczyk#
> Is there a technical reason why I shouldn't be able to eventually just replace Docker with a micro or unikernel?

Many legacy pre-docker apps were able to run inside docker without any dev work.
Very few apps would run on unikernel without dev work (porting). It's a different kernel after all.

Continue this thread — 4 more replies

Continue this thread — 9 more replies