r/AskComputerScience • u/[deleted] • Aug 14 '19
Docker
What problem does docker (and containers) solve? And in which projects should it (or not) be used?
Maybe an Eli5 because I made a long research and didn't get an answer yet.
37
Upvotes
5
u/011101000011101101 Aug 15 '19
Others have covered a lot of the benefits well, but there are some downsides. The main one i know of is when you need high performance storage. With the native way to mount storage into a running docker container, docker creates overlay storage. So basically you have a virtualized hard drive. I was working on deploying a service to AWS that works well with seqiential scan drives (HDDs), so we were using st1 storage from EBS. However once you have the docker overlay all the benefits you get from the st1 storage in this case are lost.
So basically anything that needs to be highly optimized could benefit from deploying via something like puppet or ansible instead of docker. Any data store is probably best to go without docker unless you're putting very little load on it.