Live data from Hacker News

Ask HN: Is it just me or why does Docker suck so much?

news.ycombinator.com

71–80 of 85 posts

Re: Ask HN: Is it just me or why does Docker suck so much?

#71
post #11

I've adopted Docker in my main dev workflow and I'm super happy. And the 4 or 5 co-workers I showed how it works have since adopted it too. I think it's very possible it's just you.

Would you mind sharing that work-flow? I'm interested in how this is done, since i have failed to do it on several occasions.

Re: Ask HN: Is it just me or why does Docker suck so much?

#72

Docker certainly has its pain points but I've actually really enjoyed working it into our build and deployment process. The command syntax is sometimes a bit clunky but they are making regular improvements. Not to repeat lgbr, but the registry is pretty easy to get running. I had some problems initially, but it was mostly because I didn't really understand how to use a container all that well. That sounds somewhat si…

The private registry is easy to get running, but actually using it is very, very clunky.

I understand they want the public index to "always work", but the requirement to tag images with FQDN for docker to even try to use a separate registry breaks a lot of a very common use cases, such as transparent caching and mirroring of images.

Re: Ask HN: Is it just me or why does Docker suck so much?

#73
post #34

Earlier quoted context omitted.

> To run unit tests which rely on certain hosts to resolve to 127.0.0.1. If you are unit testing DNS infrastructure, shouldn't you mock DNS things?

I'm not unit testing DNS infrastructure. I'm unit testing an Apache module. I send requests to different virtual hosts on 127.0.0.1:80, and checking whether the responses are what I expect.

That sounds sorta like an integration test; a unit test wouldn't talk to DNS.

Re: Ask HN: Is it just me or why does Docker suck so much?

#74
post #39
post #10

I've been waiting for the hype to die down a bit and for the project to stabilise before properly playing with it but, from the outside looking in, I must admit I struggle to see how it's gaining as much attention as it is. I can see the advantage for dev boxes where a developer might want to setup a load of containers on their machine to emulate a staging or production environment. But I don't really understand why…

I setup docker for our server deployments here at lever.co. We deploy our application multiple times a day. We test our changes in our staging environment first, and its important that we deploy the exact same code to production that we tested. Its also important that we can rollback any changes we make. An application-image is the right way to do that. (With compiled dependancies and whatnot). And we could make an O…

You can create "base" image of your application and update only code. Part of our fabric deploy script:

  with api.settings(**env_vars):
    api.run('docker run baseimage sh -c "git pull && cp /src/webapp/settings/paths_docker.py /src/webapp/settings/paths.py"')
    d = datetime.datetime.now().strftime('%Y-%m-%d,%H-%M')
    # new image from last running container with updates
    api.run('docker commit $(docker ps -lq) baseimage:%s' % d)
    api.run('docker stop $(docker ps -aq)')
    api.run('docker run -d -p 127.0.0.1:8073:8083 baseimage:%s sh runindocker.sh' % d)

Re: Ask HN: Is it just me or why does Docker suck so much?

#75
The truth is there isn't that much work to do anymore so the tech employee convinces their boss' boss that some hyped up tech will make them even more efficient. After a minimum of 3 months to integrate the new tech into the workflow, that same tech employee will AHDH his way into some other tech seen at Velocity and leave the internally wiki documented mess to some poor sap to maintain.

Re: Ask HN: Is it just me or why does Docker suck so much?

#76
post #71
post #11

I've adopted Docker in my main dev workflow and I'm super happy. And the 4 or 5 co-workers I showed how it works have since adopted it too. I think it's very possible it's just you.

Would you mind sharing that work-flow? I'm interested in how this is done, since i have failed to do it on several occasions.

I have failed to adopt it as well, and am still using Vagrant, but as my desktop is Linux, vagrant is a little bit of overkill.

The primary stopper for me is run vs start I think - and persistence of the most recent change I made in an environment.

Re: Ask HN: Is it just me or why does Docker suck so much?

#77
post #27

Earlier quoted context omitted.

What if the mysql server isn't in a docker container or even on the same machine?

then just use environment variables (ENV keyword in Dockerfile or --env param in docker run command)

The problem with ENV is that you can't change server IP on the fly, you have to restart the web server to apply new ENV

Re: Ask HN: Is it just me or why does Docker suck so much?

#78
post #20

Libvirt has support for lxc these days, if memory serves. I'd recommend it - docker just seems heavily marketed. What you're mentioning with hosts/resolv etc is a problem that has been "solved" with tools like etcd and zookeeper as someone else mentioned. I tried docker with a couple of things, and found that it is an environment that (at the time I experienced it, maybe six months ago) was so unhelpful as to appear…

I'm with you on the re-inventing the wheel thing. But: so? It happens, over and over again, pretty much everywhere. Heck, a significantly large portion of technology we see here on HN these days is, to put it bluntly, a lot of re-invention.

But this is really a normal aspect of a healthy, technological ecosphere. Kids grow up, they get interested in a subject, they ignore all the prior art, and they get on with doing things that they think are interesting - including fixing 'whats broke' (which often translates to 'whats not well-known') .. all technology culture suffers this factor. Why complain: its a principle driver of the state of the art, because only the good technology survives this onslaught. If its known-about in the first place, it rarely gets re-invented.

Re: Ask HN: Is it just me or why does Docker suck so much?

#79
post #20

Libvirt has support for lxc these days, if memory serves. I'd recommend it - docker just seems heavily marketed. What you're mentioning with hosts/resolv etc is a problem that has been "solved" with tools like etcd and zookeeper as someone else mentioned. I tried docker with a couple of things, and found that it is an environment that (at the time I experienced it, maybe six months ago) was so unhelpful as to appear…

libvirt has had LXC support since time immemorial (2-3 years at least). Unfortunately, it is only really partial support and IIRC its abstractions don't work very well with LXC. Like the other responders, I also evaluated it then decided to avoid it. I have a spider-sense that libvirt was a project by a large Linux company that kind of failed to win traction and is slowly being deprecated.

Re: Ask HN: Is it just me or why does Docker suck so much?

#80
Docker is good to run application container, not suitable for virtulizing OS. Therefore, playing with system configuration files such as /etc/hosts of /etc/resolv.conf is not something that you want to do in Docker. You should use LXC, instead.

I agree that Docker is suck sometimes, but most of times are because existing application is not built in a way that docker expects. I am optimistic that more are more applications are designed to be used for container environment.

Post reply on HN