4 ms·
A very interesting and important aside is that in Linux you pay almost no tax for using Docker. This is not the case on Windows and MacOS where there is a sign
by sams99 8y ago
A very interesting and important aside is that in Linux you pay almost no tax for using Docker.
This is not the case on Windows and MacOS where there is a significant cost.
That 8 minute spec run, also takes 8 minutes in docker.
https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009/32?u=sam https://meta.discourse.org/t/beginners-guide-to-install-disc...
- amanzi 8y agoThe significant cost on Windows is due to having to spin up a Linux VM in the background, right? So the cost is probably more due to the VM than Docker itself?
- sams99 8y agoThere are 2 parts to the cost. 1. is the VM 2. is handling filesystem mounts across operating systems (2) can be debilitating in dev environments on Mac for example where you want to edit files outside the container but have the container have access to them. Docker have done a lot to improve this over the years but it is still very painful.
- deleted 8y ago[deleted]
- NightlyDev 8y agoAs with everything, take "almost no cost" with a grain of salt. There sure is situations where docker can be slow compared to bare metal, even on linux.
- sams99 8y agoabsolutely if you have a filesystem heavy operation and are accessing files inside the container in aufs instead of a local mount, you are going to pay a massive docker tax.
- jen20 8y agoIf you are running on a Linux host on bare metal, Docker containers ARE bare metal - they use kernel primitives such as cgroups and namespaces, not hardware virtualisation.
- NightlyDev 8y agoYou don't have to use virtualization for something to be slow. Most things are running basically the same when using containers, but not everything. Take networking as an example: That's usually not working as it would on bare metal and usually result in a significant performance loss.