When is it Better to Avoid Using Docker?
Asked by
ribbon width 7
I'm working at a mid-sized company and I've been curious about the situations where Docker might not be the best choice. Are there specific scenarios or configurations where it's better to just run things directly on the machine?
Answers
Sometimes, vendor-supplied applications won't support Docker. If you're dependent on certain software that has licensing tied to hardware IDs or MAC addresses, Docker may not be feasible. In those cases, you might want to run it natively.
Reply to this answer
If you have a machine that's dedicated to a single task, like a database server running one process, then using Docker might complicate things unnecessarily. Dockerโs overhead is usually minimal but it still exists, and that can add another layer of complexity to debug.
Reply to this answer
For smaller setups or when you don't need isolation, it might be simpler to run directly on the machine. If you have poor observability tools or need full access to logs and configs, going raw can be a better fit.
Reply to this answer
I have a VPS with only 768MB of RAM, so every megabyte counts. Running services directly instead of in Docker saved me from the dreaded OOM killer who frequently took down my containers. Performance considerations can definitely influence whether Docker is a good fit.
Reply to this answer
One major consideration is performance. If you need to squeeze out every bit of performance, Docker could introduce slight overhead due to the union filesystem, especially during writes. Also, dealing with permission issues can be a hassle at times, so that might be another reason to stick with a direct install if it's causing you more trouble than itโs worth.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions