3 ms·
Docker doesn't actually save time. The thinking is that with docker you can manage your dependencies in one place, and so you don't need to spend time and head
by actinium226 4y ago
Docker doesn't actually save time.
The thinking is that with docker you can manage your dependencies in one place, and so you don't need to spend time and headache dealing with issues like incompatible packages.
In reality, you trade that time and headache for the time and headache of dealing with docker: did you mount all the files you needed? Did you start the container with the proper command to enable debugging? How do I attach the debugger to my process inside the docker container? And personally I don't like the extra "state" I have to maintain in my head that I'm in a docker container.
My overall argument is that if the dependencies are so crazy that you're wasting time on conflicting packages, take a hard look at those dependencies and see if you really need all of them, or if you can simplify.
To be absolutely clear, docker is still great for certain use cases. For spinning up new CI machines it's fantastic and really simplifies that process in a meaningful way. But for local dev I think the advantages/disadvantages wash out and makes it either a net zero at best or negative at worst, since that "state" will always be there.
- kbrannigan 4y agoMy understanding is that the lower layer will outlive docker. Some new dev with no understanding of how bare metal OS operates will be stuck within the limits of docker. Like a goat who spent all it's life inside a fenced yard.
- actinium226 4y ago> the lower layer will outlive docker. That's a good way to put it, I like it.