3 ms·
Enforcing an immutable filesystem is actually pretty easy to do, just don't give write permissions to the user under which the program is running :) What Docke
by icebraining 11y ago
Enforcing an immutable filesystem is actually pretty easy to do, just don't give write permissions to the user under which the program is running :)
What Docker integrates is a layered filesystem, in which the application can mutate the filesystem, but only it will see those changes (and they'll go away when the container is destroyed).
- merb 11y agooh yeah sorry. however on some linux filesystems you could also use `chattr +x` however most things won't play well with that ;) especially not programs which create logs / pids / whatever.
- justincormack 11y agoYou can mount the base filesystem read only in the container as of 1.10, with tmpfs mounts for where you need ephemeral mutation.