I recently set up Proxmox VE and have been playing around with it. I'm curious whether the Linux distribution I choose for my virtual machines has any impact on the performance and security of the Docker containers I run. I find DietPi much easier to install compared to Debian or Ubuntu because it's minimal and compact. Will using a lightweight distro like DietPi actually make a difference in resource usage and speed?
5 Answers
I use Alpine with Docker and find it really efficient. The leaner the host system, the less resource usage and lower the risk of vulnerabilities. DietPi can definitely provide a similar lightweight experience as Alpine!
If you're using Docker on macOS or Windows, keep in mind that you’ll be running it in a virtual machine. Linux lets you use kernel virtualization directly, which is more efficient. For production use, I'd always recommend sticking with Linux.
The main thing is to have the minimal necessary packages installed—less is better! Whether it’s a minimal Debian, Alpine, or DietPi, you can’t really go wrong here. Docker is designed to be easily transferable among different systems.
Running Docker on a Linux-based distribution is definitely the way to go! Since Docker utilizes the Linux kernel, using a custom OS on Windows or macOS can lead to emulation issues, impacting performance. So stick with a Linux distro for better results.
Generally, the distro itself doesn't matter much, but if your kernel is outdated, that can cause problems. I’ve faced slow setups with older systems like Debian, but with something like DietPi, the install is faster and more efficient.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures