News for hackers. Stuff that matters.
Re:Ask HN: How do you use Docker in production? by zrail on Friday October 17, 2014 @08:17AM (#8470517)
The laptops are Macbook airs and were not running a VM at all. Instead, users had a script they could double click to launch the application in a terminal window.

Now the laptops run the VirtualBox setup and always have the application running in the background. Docker adds value by letting us distribute a much smaller amount of data vs sending out an entire VM image.

For the Windows server, we used to distribute upgrades by sending out an entire VirtualBox appliance image, which was usually around 3GB. Additionally, the operator would have to manually shuffle data between the old and new images. Now, we can ship out an saved Docker image (built with `docker save`) which cuts down on the amount of data transferred, and the final VM we shipped him knows how to upgrade the Docker container and shuffle the data automatically.

Re:Ask HN: How do you use Docker in production? by vidarh on Friday October 17, 2014 @09:50AM (#8470935)
I'm curious about a couple of things:

- Are you/have you tried using "FROM" and layering things in multiple images to reduce what you need to keep shipping?

- Anything stopping you from using a private registry? I'm running one at it seems to work quite well (with the caveat that it's annoying to have to specify the registry all the time).

- You talk about "shuffling the data". Does that mean you're not using volumes to keep the data separate from the container? If so, any particular reason?

Re:Ask HN: How do you use Docker in production? by zrail on Friday October 17, 2014 @10:00AM (#8470990)
1) We've talked about it but it's not a blocker so we haven't done it yet. Right now we're trying to reduce the number of layers we ship, since they seem to get big for no good reason.

2) We're using a private Docker Hub account to transfer images to the laptops. They have a script that the users can invoke that shuts down the container, updates, runs some initialization tasks (`db:migrate` + some other stuff) and then brings the container back up.

3) Yep, we're using mounted shared directories in both cases. Previously the laptops of course just stored everything on the local filesystem since they were running the app directly. I'm not 100% sure what the Windows server was doing, but I believe the operator had to move data from one share to another and run initialization tasks by hand.

Re:Ask HN: How do you use Docker in production? by vidarh on Friday October 17, 2014 @10:37AM (#8471169)
Thanks. Sounds like an interesting setup. I'm rolling out Docker in a couple of settings, but so far all "conventional" server settings.