News for hackers. Stuff that matters.
Re:Docker in Production: A History of Failure by tzaman on Friday November 04, 2016 @10:37AM (#12872861)
That's odd, we've been using Docker for about a year in development and half a year in production (on Google Container engine / Kubernetes) and haven't experienced any of the panics, crashes yet (at least not any we could not attribute as a failure on our end).

Clearly, Docker itself has a a few annoyances, like no garbage collection and poor tagging process, but we're using it on a daily basis, and nobody complains about it (nothing a few bash scripts can't fix).

Finally, the biggest benefits of not just docker but containers in general are consistency and immutability which brings me to the final point I agree with the author: Your database shouldn't be containerized. It's not your pet (from pets vs cattle), it's your BFF.

Re:Docker in Production: A History of Failure by chrisfosterelli on Friday November 04, 2016 @11:48AM (#12873492)
Yeah, for every article complaining about how Docker in production is just so terrible there's a huge group of people who have been running it for a while and have no problems at all.

Nobody writes rant posts when things work, I guess.

Re:Docker in Production: A History of Failure by benballjr on Friday November 04, 2016 @03:05PM (#12875046)
I definitely try to highlight the success stories, but there's a critically different way that audiences react to "here's why everything went great for me" on Hacker News, though I think that is understandable. Too many times they're customer success stories, or case studies from the marketing department, and many don't care for those.
Re:Docker in Production: A History of Failure by eskil on Friday November 04, 2016 @02:44PM (#12874884)
Re:Docker in Production: A History of Failure by fpoling on Friday November 04, 2016 @01:14PM (#12874183)
What is wrong with DB in container? As long as one uses host volumes for persistent data, docker allows to isolate DB setup rather nicely.
Re:Docker in Production: A History of Failure by blorenz on Friday November 04, 2016 @02:09PM (#12874611)
Agreed and confused. Interested to find what would be wrong with this? (from my docker-compose.yml under the db service) volumes: - ./data/postgresql:/var/lib/postgresql/data
Re:Docker in Production: A History of Failure by adenot on Saturday November 05, 2016 @01:38AM (#12878356)
Reverse question that no-one seems to ask: What's the advantage of running a DB on a container?
Re:Docker in Production: A History of Failure by etherealG on Wednesday November 09, 2016 @03:43AM (#12907985)
Spinning a new db in continuous integration for integration tests.
Re:Docker in Production: A History of Failure by eggie5 on Friday November 04, 2016 @02:07PM (#12874599)
Yeah I'm wondering this too...
Re:Docker in Production: A History of Failure by tzaman on Friday November 04, 2016 @03:00PM (#12875004)
Read my reply below
Re:Docker in Production: A History of Failure by user5994461 on Saturday November 12, 2016 @05:40PM (#12940606)
1) The conclusion of the article is to use Google Container Engine because Google are the only one who might have managed to get a working ecosystem around Docker and may be able to maintain it.

2) As disclosed by other comments, Google Container Engine doesn't use Docker. It uses containerization technology made by google for google, with a docker-interface added on top.

That's why you don't have problems with Docker. You're not using Docker at all! ;)

Re:Docker in Production: A History of Failure by all_the_things on Friday November 04, 2016 @10:51AM (#12873002)
OP wasn't using orchestration.
Re:Docker in Production: A History of Failure by finid on Friday November 04, 2016 @11:47AM (#12873477)
He wasn't using orchestration, but said Docker Swarm is terrible. How did he come to that conclusion.

For the record, orchestration in Docker (1.12.x) is actually quite good. Its built-in service discovery and mesh networking make setup a breeze.

Re:Docker in Production: A History of Failure by eggie5 on Friday November 04, 2016 @02:08PM (#12874609)
How do you host your DB on GKE? Are you saying there's something wrong w/ a DB pod that writes to a PV?
Re:Docker in Production: A History of Failure by tzaman on Friday November 04, 2016 @02:55PM (#12874958)
We host PostgreSQL on GCE with two separate instances (master/standby) replicated with repmgr (http://www.repmgr.org/). Then we have a service defined with custom endpoints that point to these two instances.

There's plenty wrong with a Pod that writes to PV - if your Pod/Container somehow gets corrupted, you're left with a corrupted database. It's unlikely, but as the origintal article states, Docker is young and things happen. Are you willing to risk it?

So in every case you need to ocnfigure replication and master selection. Are you willing to trust the pods to do the right thing without manual intervention on data that is the core of your business? I'm not.

Re:Docker in Production: A History of Failure by fpoling on Friday November 04, 2016 @03:25PM (#12875235)
What exactly do you mean by "container get corrupted"? One should always use the read-flag to run Docker containers and use explicit volumes for persistent data. With this setup a container can only get corrupted if a read-only bind mount gets corrupted, and this will be a bug in kernel, not Docker.