187 points · by julien421 · 12y ago · 72 comments
This week we are freezing all feature merges and focusing on refactoring, code cleanup and generally repaying as much technical debt as possible.
We are also considering a gradual slowdown of the release cadence (we currently cut a release every month), to give more time for QA. Even though we work hard to keep master releasable at all times and run every merge through the full test suite, in practice there can never be enough real-world testing before a release. An 8-week cycle (which is roughly what Linux does) would allow us to freeze the release 1-2 weeks in advance and do more aggressive QA.
Keep up the good work!
https://github.com/docker/docker/issues/1916
That said, yes this release looks interesting!
It hasn't bothered me enough to comment on that issue though, Docker has really improved my workflow enormously.
Thanks guys!
"Currently if we restart docker daemon, all the running containers also restart. Are there any plans to keep the running containers running even if we upgrade our docker daemon?"
The answer is yes, there are plans to do exactly that :)
Trying to get CoreOS installed on VPS providers is a huge pain[0], and fleet and etcd are technically not labelled as production-ready (only CoreOS used as a base OS is)[1], so I'm really glad I can go back to vanilla Docker.
https://coreos.com/docs/running-coreos/cloud-providers/vultr...
I'm pretty sure CoreOS and Docker are different solutions to different problems. So... one is not really inter-changeable with another, and thus you were not "wasting" your time.
So, perhaps you didn't understand the problem you were trying to solve? Docker is about application environment isolation/portability (not! virtualization! -- there is no security provided here), where CoreOS is about scaling and HA.
However, right now I don't have a Mesos-type of cluster with a bunch of horizontally scalable services that would truly benefit from CoreOS, Consul, etc. I've got three basic services that are going to be pinned to specific boxes. I don't need an elastic scaling solution right now - I just need container restarting, and I'll handle provisioning and upgrades myself with Ansible. Basically I don't have cattle right now, I have kittens.
I had been looking for a way to manage my containers with the usual supervisors - supervisord, systemd, etc., but didn't see any resources on anyone else doing it. After I started adding systemd on the host to manage container restarts, and a playbook for managing Docker daemon upgrades, I started to feel like I was re-inventing CoreOS, so I gravitated towards it. CoreOS also has other benefits like being a minimal Docker host and providing the distributed configuration with etcd so it seemed like a good idea.
But to fit within that paradigm I had to start re-wiring my images to be horizontally scalable. Then I ran into the problem of how hard it was to just get CoreOS installed on Linode, and got frustrated.
I didn't mean to knock CoreOS or anything, I'm just saying this solved a use case problem I've been having. I'm sure if I spent more time with CoreOS I would have gotten everything working correctly, but at this point I'm just trying to run my multi-host Docker application in a stable way without doing the whole horizontally scalable cluster thing.
Actually there is plenty of security[1]. It may not be "as secure" as a traditional virtualization platform, but that doesn't mean Docker/containers don't have plenty of capabilities (ha!) to offer in terms of security.
You need to understand what they offer, but the old "Docker isn't secure" thing is not more truthful than "Docker is a security solution". Security is a continuum, and Docker has some very interesting security uses.
I've already linked to [1], but I'd encourage all to read it.
[1] http://www.slideshare.net/jpetazzo/is-it-safe-to-run-applica...
1.0 was/is about API stability, engine stability, full ecosystem with Docker Hub, and enterprise support.
While great, I worry that this is a part-solution that will delay the implementation of a proper one.
> 1) We do degrade restarts over time.
Is this adjustable? X restarts in Y seconds? I feel this is something that could be quite application specific.
> 2) There is hierarchy (so it will start linked containers).
So if A has a link to B, will A be restarted if B is restarted?
I'd be aiming to build hierarchies with restart strategies like these:
2) No, this is not the goal of the restart policies. I think this would be best implemented by something watching the docker event stream.
I haven't found a satisfactory solution to having communicating containers across multiple hosts. There seems to be quite a few solutions in the making (libswarm, geard, etc). How are other people solving this (in production, beyond two or three hosts)?
Are there any up-to-date installation instructions for the Vagrant env?
(not in any way, shape, nor form). Please stop trying to make Docker into everything it's not.
Edits to /etc/hosts in a container don't affect the host, so it seems like everything should Just Work.
So now docker is taking on the work of what systemd and other daemon-managers are supposed to solve? Looking forward to docker run --restart on-failure ubuntu /bin/bash exit -1
When you include a --restart "feature" you know for sure you have don goofed.
But anyway, the rest of the stuff looks like pure candy. Great job!
2) Restart policies are exposed in the API, so daemon managers can leverage this feature to hook in their own restart policies in a consistent, supported way.
is this info up-to-date? http://stackoverflow.com/questions/18496940/how-to-deal-with...