Anyone using Docker?

Status
Not open for further replies.
I'm kind of interested in Docker, but I'm having a hard time understanding what the normal workflow is supposed to work like. Right now, at my job, we use Vagrant and CentOS 6.5 with setup scripts to create identical development environments for everyone to work from. When we go to deploy, we create an RPM of all our software that needs to be installed and then install that on the customer's system (also CentOS 6.5) either via yum or via a burned iso that's hand delivered to the server. Next week I start a new job and I expect that the packaging chain there won't be nearly so mature. I'll be this organization's first engineering hire and I'll be running the department going forward as we hire new people, so I'm interested in finding out if Docker might be a good fit as a way to standardize development environments going forward.

I've got a loose handle on how it works but I'd like to hear real-world stories of people using it to know if it's going to simplify deployment toolchains or if I should work toward a different goal. Thanks!
 
D

Deleted member 43669

Guest
We use it slightly at work, basically as a nicer chroot (for instance, to build rpms on my Debian laptop) or as lightweight VMs (for instance, for testing Puppet modules).

My gut hates uses that they're being used to deploy apps- but it's more of an irrational hate.

We still use Vagrant for development environments- for instance our main app uses Apache, Postgres, RabbitMQ, ActiveMQ, Puppet, Graphite, Riemann and I might be forgetting something- it makes sense to dump all that to VMs, not sure if Docker would work better/worst...
 

drogin

Ars Tribunus Angusticlavius
8,283
Subscriptor++
We are using docker for dev environments. The docker containers are running inside of a vagrant virtual machine. Overall the system works pretty well, but it depends on how many containers you are running and what they do.

As far as deployment goes, it really depends on how you are hosting it. If you are in a position to dockerize almost everything, then you can just use CoreOS and it's associated tools to manage your containers in production.

In our case we don't deploy docker. In fact our "real" infrastructure is managed using Chef. This is a little bit of a burden because we need to keep the Dockerfiles for the containers somewhat in sync with our Chef changes.

Over the next year I am pushing to move to a container based live environment, but I am not yet sure how I will solve all of the potential deployment problems.
 
I have a dismal view about Docker. It's a pretty lazy project that has only partially enabled or completely ignored important kernel security features. It's a project that's more concerned about getting people using it quickly than about making sound engineering decisions. The image repository, while convenient for new users, is a disaster waiting to happen.

Since you already have experience building and serving RPMs, go with lxc-libvirt.
 

drogin

Ars Tribunus Angusticlavius
8,283
Subscriptor++
[url=http:/civis/viewtopic.php?p=27439313#p27439313:28vin1qz said:
fandingo[/url]":28vin1qz]I have a dismal view about Docker. It's a pretty lazy project that has only partially enabled or completely ignored important kernel security features. It's a project that's more concerned about getting people using it quickly than about making sound engineering decisions. The image repository, while convenient for new users, is a disaster waiting to happen.

Since you already have experience building and serving RPMs, go with lxc-libvirt.

I won't comment about the kernel security stuff, but the image repo isn't that big of a deal. We just host our own, and we built our own base images...
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
[url=http:/civis/viewtopic.php?p=27439313#p27439313:1tn5lvis said:
fandingo[/url]":1tn5lvis]I have a dismal view about Docker. It's a pretty lazy project that has only partially enabled or completely ignored important kernel security features. It's a project that's more concerned about getting people using it quickly than about making sound engineering decisions.
Please substantiate this. Because having used Docker in significant amounts of anger, it's pretty much the best way out there to reliably separate applications from its substrate while maintaining security of operations.

We're moving to use Mesos and Docker for elastic clusterization--with an eye towards making our applications into Mesos frameworks for task management and dynamic scaling of worker agents--and it's fuckin' awesome. (We're not using CoreOS because CoreOS thinks far, far too small. Mesos lets you run just about anything under it trivially; we're talking about throwing Spark and ElasticSearch on it and life is way too short to spend time encapsulating that stuff in Docker.)
 
[url=http:/civis/viewtopic.php?p=27441107#p27441107:3jzis1bm said:
Blacken00100[/url]":3jzis1bm]
[url=http:/civis/viewtopic.php?p=27439313#p27439313:3jzis1bm said:
fandingo[/url]":3jzis1bm]I have a dismal view about Docker. It's a pretty lazy project that has only partially enabled or completely ignored important kernel security features. It's a project that's more concerned about getting people using it quickly than about making sound engineering decisions.
Please substantiate this. Because having used Docker in significant amounts of anger, it's pretty much the best way out there to reliably separate applications from its substrate while maintaining security of operations.

We're moving to use Mesos and Docker for clusterization and elasticity and it's fuckin' awesome.

They don't use user namespaces. The UID inside a container is the same outside. SELinux support is also basically nonexistent. This LWN thread has a discussion of the most serious complaints.

Docker is about simplicity and convenience, not security.

Edit: A quote from that thread

Yes, quite. When looked at objectively, Docker is pretty much a disaster. In terms of running containers, other solutions are superior (eg libvirt-lxc) as they offer better resource limits, more flexible resources, don't presume all sorts of things (a good example is with docker, you get a max of one NIC in a container, and docker gives you no ability to set the IP. Which means that Docker containers are fine on a single machine. But wire together Docker bridges across multiple machines and you'll have endless IP collisions).

The "improvement" that Docker has brought is the easy way to create and get hold of container images. Except they've done that too in the most awful way possible: the dockerfile is an imperative script with absolutely no way to verify that multiple runs of the same dockerfile result in the same image. Consequently no one can standardise on the dockerfile, they instead have to standardise on the image.

On technical basis alone, there is no way it should be successful. Quite how they've achieved the popularity they have, is beyond me. Yes, it's easy to use, and going from nothing to a "hello world" is pretty straight-forward. But doing anything sensible from there on is a nightmare. For example: great, so now instead of a dozen VMs, we have 100s of containers. And how are we going to maintain those? How do we respond to the next heartbleed? And so forth.
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
All true, though I'd say that if you're using containerization correctly you shouldn't really need to give a shit about SELinux (and it seems like Docker's devs' world has everybody using AppArmor, which does work fine in my experience). All mild-at-best issues that I've heard before and remind me of Theo de Raadt's frothing about people being good with good-enough. And good-enough engineering is--shockingly--good enough, especially when it gives you 90% of the payoff for 20% of the effort. And, real talk, libvirt-lxc is a gigantic shitshow to actually use, especially if you expect it to be used by people who aren't paid to be containerization experts. I've set up boxes using it and I still need to consult the fragmentary pages of doc across the Google machine to do anything, whereas the Docker constructs fall out predictably.
 
My point wasn't to say that lxc-libvirt is some godsend that is far and away better. It's that Docker has deficiencies, and the core contributors don't seem to have much interest in making a tool that focuses on security. The problems that I pointed out are not that difficult to implement, and there are people working on them; it's just that they're outsiders.

On a final note, the AppArmor support for Docker, like just about everything with AppArmor, is incomplete and doesn't appear to be anything more than a half-hearted effort. SELinux is substantially more rigorous since it requires affirmative access for everything; whereas, AppArmor leaves access open unless specifically restricted.
 
Status
Not open for further replies.