DEV Community

Discussion on: Docker everywhere is not a good thing.

Collapse
 
simonjgreen profile image
Simon Green • Edited

I find people very easily conflate containers with stateless. With a single host system containers are a great way of seperating your application dependencies from your OS capabilities. Say you are a small business and you have a variety of web apps going on, differing php versions, differing python versions, different module versions, etc. Docker allows you to very simply run independent environments. You can maintain state in exactly the same way you would before, you just mount the appropriate file system location as a volume into the container. Security is immediately improved as you've sandboxed the applications from each other. Upgrades and updates are handled much simpler. I think this is a very simple and very sadly overlooked use of containers. Just because you can, doesn't mean you need to be running many instances of everything. And when you start to expand in the future, you're set in good stead for the new wave of born-in-the-cloud applications which come container first.