Ask HN: Why use Docker and what are the business cases for using it?
21–30 of 137 posts
Re: Ask HN: Why use Docker and what are the business cases for using it?
#22We have a shitload of servers running CentOS for historical reasons. We can't change the distribution because all the services running on this servers are tight to the quirks and special cases of this distribution. So we need to live with CentOS. Some of our newer services need a up to date version of glibc and a lot of other dependencies CentOS can't provide. So we use docker to boot up Ubuntu 14.04 containers and r…
Is CentOS not the state-of-the-art Linux distro to run for servers (besides RHEL for support)?
Re: Ask HN: Why use Docker and what are the business cases for using it?
#23There are many ways of using Docker and obviously different companies could come up with their own business cases for adopting the technology. So let me focus on one scenario and we can talk about whether it makes sense for your environment. Software engineering is often difficult because programmers have to deal with inconsistent environments for development and for production execution of their products. Due to mis…
I also don't get the argument about running the same container in dev/test/prod. For example my company is working on going Docker and one of the problem with these environments is that app running there has different configuration. So the idea to solve it is to create three different versions of the same container. Genius! But now are you really running the same thing in dev/test/prod? How is it different to what we did in the past? Especially that before Docker through our continuous delivery we actually were using exact same artifact on machines set up with chef that were configured the same way as in prod, while with Docker now we plan to use three different containers.
Re: Ask HN: Why use Docker and what are the business cases for using it?
#24Re: Ask HN: Why use Docker and what are the business cases for using it?
#25Re: Ask HN: Why use Docker and what are the business cases for using it?
#26Re: Ask HN: Why use Docker and what are the business cases for using it?
#27* Solaris Zones, see also SmartOS Zones based on that
* FreeBSD jails
Re: Ask HN: Why use Docker and what are the business cases for using it?
#28I've used puppet for several years to manage our infrastructure, and puppet is still managing all our staff and student laptops, but for servers, I've switched everything to CoreOS + Docker.
Re: Ask HN: Why use Docker and what are the business cases for using it?
#29Can people elaborate on when it would be better to use a virtual machine and when it would be beneficial to use a container?
Re: Ask HN: Why use Docker and what are the business cases for using it?
#30There are many ways of using Docker and obviously different companies could come up with their own business cases for adopting the technology. So let me focus on one scenario and we can talk about whether it makes sense for your environment. Software engineering is often difficult because programmers have to deal with inconsistent environments for development and for production execution of their products. Due to mis…
We're pretty heavily invested in Docker. To this point, it's really nice knowing that all the developers are operating in consistent environments.
An additional bonus is that using Docker makes it really easy to propagate infrastructure changes to the rest of your team for use in development. And, more importantly, know those infrastructure changes are consistent across local dev setups.
As an example, I recently incorporated Sphinx search into a project we were working on. I didn't want to require devs to install Sphinx on their own machines and get it up and running for search to function properly. I also didn't want devs to have the overhead of running Sphinx for search on their local boxes unless they were actively working on something related to search. Basically, I wanted search to be optionally configured to run on startup.
I used a DockerFile to setup Sphinx in its own container, pushed the DockerFile to a Tools source repository we use, and then incorporated the build and running of that container into our startup scripts (just some simple orchestration stuff for the local machine written in bash). Now, if a dev wants a containerized search mechanism they run a simple bash script to build that container, then run another command to spin up our dockerized web app with a connection to a running sphinx search container. We do this for all of our services: mysql, redis, sphinx, the web app itself, and anything else we might need.
As an added bonus, all the Docker CLI work and orchestration of our application is easily hidden behind a shell script. If a dev wants to run the webapp, they simply run: app server dev. If they want the app with search they run: app server dev search from the command line. Developers never need to know what's going on under the hood to get their job done. From their perspective, it just works.