News for hackers. Stuff that matters.
Re:Ask HN: As a solo founder, what are the reasons not to us... by mountainriver on Sunday July 18, 2021 @01:39PM (#27874787)
I find this kinda insane. The days before docker I would spend a lot of time trying to reproduce environments. Docker isn’t hard to use and doesn’t add much complexity, but the payoff is huge in terms of having portable environments.
Re:Ask HN: As a solo founder, what are the reasons not to us... by Frost1x on Monday July 19, 2021 @08:40AM (#27881963)
I spend significantly more time dealing with messes of Docker containers that were thrown together ad-hoc with a slew of bad practices than I ever did having to hunt down and resolve dependencies.

Docker really makes it easy to create messes by bad or less experienced developers yet ultimately have something functional, for awhile. Setting up environments used to act as a filter to clear out these sort of messy systems. If you put together a system of distributed services, you were probably competent enough to make something that wasn't horrible and considered maintainability. Now, with a few days Googling, anyone can spin up a distributed system of services with every bad practice known to man as to how those services are initialized, modified (yes, I rarely see stateless containers), and interconnected.

With a sizable team of developers that aren't under time pressures incentivized to build tech debt and pass it along, Docker (or rather container systems, not necessarily Docker) have a lot of useful purposes. I rarely see it used this way in the wild, I instead see it as a way to build tech debt. I'll take the need to resolve a couple dependencies over that any-day of the week.

Re:Ask HN: As a solo founder, what are the reasons not to us... by runawaybottle on Tuesday July 20, 2021 @01:25AM (#27890365)
Docker really makes it easy to create messes by bad or less experienced developers yet ultimately have something functional

I would like to see a ‘foot-gun index’ where we rank technologies and determine how likely someone is to fucking things up if not careful.

Re:Ask HN: As a solo founder, what are the reasons not to us... by mountainriver on Tuesday July 20, 2021 @03:04PM (#27897800)
I haven’t seen a tech debt problem with containers, we mostly use infra as code and have PR reviews so that doesn’t happen.

Junior engineers can make a mess with anything, it’s a senior engineers job to prevent that

Re:Ask HN: As a solo founder, what are the reasons not to us... by Frost1x on Wednesday July 21, 2021 @07:57PM (#27913673)
Well it's often my job to come in and fix these messes after both of those fail or there's no one senior and competent to handhold and prevent these messes from forming until they've become unmanageable yet mission critical.
Re:Ask HN: As a solo founder, what are the reasons not to us... by tkiolp4 on Sunday July 18, 2021 @03:19PM (#27875733)
But Docker is not the only way to provide reproducible environments. I find Terraform + Ansible enough for such purposes.
Re:Ask HN: As a solo founder, what are the reasons not to us... by cpach on Monday July 19, 2021 @02:40AM (#27879875)
Just out of curiosity: What does Terraform provide when you already have Ansible running?
Re:Ask HN: As a solo founder, what are the reasons not to us... by TheCapeGreek on Monday July 19, 2021 @03:39AM (#27880140)
Terraform focuses on creating/managing the machines you'll be using, less so provisioning them (though you can somewhat). Ansible focuses on provisioning systems, with not much (any? not sure) capability for actually creating/managing the machines it'll provision.

I've also seen it recommended to use Ansible + Packer to provision an image, then use Terraform to create machines from the image. Saves you some troubles with connecting to your cloud machines.

Re:Ask HN: As a solo founder, what are the reasons not to us... by xorcist on Monday July 19, 2021 @09:12AM (#27882265)
Ansible has pretty much the same capabilities for managing machines as Terraform have. The fact that it reads the actual state instead of keeping it locally makes for one less headache.
Re:Ask HN: As a solo founder, what are the reasons not to us... by fomine3 on Monday July 19, 2021 @12:15AM (#27879195)
Enough, but is it easier than simple Docker setup is different.
Re:Ask HN: As a solo founder, what are the reasons not to us... by hughrr on Sunday July 18, 2021 @03:18PM (#27875727)
Try producing two kubernetes clusters with exactly the same configuration with full management and monitoring stack and you will discover how difficult it is to scale this complexity up.

Docker works for most trivial cases but for complex systems it becomes a shit show very quickly which is hard to reason about when you need to, which is whenever it is inevitably broken.

Re:Ask HN: As a solo founder, what are the reasons not to us... by meowface on Sunday July 18, 2021 @04:38PM (#27876469)
A lot of Docker criticism I've seen on HN and elsewhere equivocates between Docker and Kubernetes. I've never used Kubernetes, but I use Docker very frequently and find it a massive improvement over the previous state of affairs. Kubernetes does seem complex and difficult to learn, but Docker doesn't.
Re:Ask HN: As a solo founder, what are the reasons not to us... by xupybd on Sunday July 18, 2021 @04:05PM (#27876180)
Yes but a legacy app with no need for kubernetes scale gains huge benefits from docker. When you have to compile your libs from source because they are so old no packages exist anymore, then docker greatly aids both development and deployment.
Re:Ask HN: As a solo founder, what are the reasons not to us... by mountainriver on Tuesday July 20, 2021 @03:02PM (#27897777)
I do this every day and have done it for the last 5 years. It’s far more sane than any alternatives I’ve seen
Re:Ask HN: As a solo founder, what are the reasons not to us... by slindz on Sunday July 18, 2021 @02:23PM (#27875171)
Some languages definitely benefit from portable environments, others don't really need it.

My anecdata is that horsing around with Docker was still needed and when things went wrong, they went REALLY wrong.

As with all things, figure out what you need, pick the right tool for the job, and all that good stuff.

Re:Ask HN: As a solo founder, what are the reasons not to us... by hsn915 on Monday July 19, 2021 @04:50PM (#27887108)
I find it insane that you think configuring environments is the right way to program.

I write my web programs in Go and there's nothing to configure once a build is complete. I just get a binary and I can ship it / deploy it anywhere.

I never found any use for Docker.

Re:Ask HN: As a solo founder, what are the reasons not to us... by mountainriver on Tuesday July 20, 2021 @03:00PM (#27897759)
I also write a lot of Go, while ago has less issues it’s still a great way to package it up