3 ms·
> The MySQL data directory is mounted from the host file system, which means that Docker introduces no write overhead If I understand correctly, Docker doesn't
by amenod 10y ago
> The MySQL data directory is mounted from the host file system, which means that Docker introduces no write overhead
If I understand correctly, Docker doesn't introduce any write overhead, mounted from host or not. This is the main difference from VMs - syscalls are just being "forwarded" to kernel. Or am I missing something?
Still, I am only arguing with the stated reason. Of course you don't want to save state inside an (ephemeral) container.
- otterley 10y agoThere's not even a forwarding process. Containers are simply processes running in a set of one or more different "namespaces." A mount point in a container is just an ordinary mount point from the kernel's perspective. In this case, the mount point is relative to the container's root filesystem set via chroot(2).