News for hackers. Stuff that matters.
Re:Ask HN: How do you use Docker in production? by seppalala on Friday October 17, 2014 @09:57AM (#8470979)
Yes, very much so. In fact, our goal is to have NixOS based containers. Right now, we're using Debian as the base image, and there's /no/ guarantee that the versions of software installed are consistent (since Docker caches based on the line in a Dockerfile, rather than what's actually installed).

With Nix, we can have version guarantees in all of our Docker images--including the cached images.

Re:Ask HN: How do you use Docker in production? by indygreg2 on Friday October 17, 2014 @11:50AM (#8471547)
I blogged about this the other day and would love to hear about your experience!

http://gregoryszorc.com/blog/2014/10/13/deterministic-and-mi...

Re:Ask HN: How do you use Docker in production? by seppalala on Friday October 17, 2014 @01:29PM (#8472146)
This is spot-on what I'd like to do, and I have the exact same concerns. Thanks for sharing!
Re:Ask HN: How do you use Docker in production? by cpuguy83 on Friday October 17, 2014 @12:45PM (#8471852)
Well sure there can be a guarantee.

`RUN apt-get install some_package=<version>` If you want a newer version, update the Dockerfile with the version you want.

Re:Ask HN: How do you use Docker in production? by joevandyk on Friday October 17, 2014 @01:03PM (#8471968)
That package could install some other dependencies, and those dependencies aren't pinned down.
Re:Ask HN: How do you use Docker in production? by mentat on Friday October 17, 2014 @07:59PM (#8474065)
That depends on how the package is specified doesn't it? You can snapshot the full chain of versions with dpkg and explicitly specify them all. It should be too hard to wrap this into something like Gemfile.lock
Re:Ask HN: How do you use Docker in production? by nextos on Friday October 17, 2014 @01:14PM (#8472032)
Great. I have a major complaint about Nix. Their packages are built with all sorts of dependencies included. So you install mutt and you end up getting python. Or you install git and you also get subversion.

I understand all their philosophy, but they should allow for flexible runtime dependencies without the need for rebuilding packages. Perhaps with a second hash or something, to sign dependencies.