if possible: set the container filesytem to read-only. The same can be done for data in volumes.
* Note that these tips are less “fire-and-forget, sane defaults” and can be much more finicky. Whether they work well depends on the service in question. They may break container deployments and are often a matter of trial and error until you get them just right. (Feel free to hit me up on details; if I happen to be running the same services as you are, I may be able to tell you what works and what doesn’t.)
Comments
More Docker hardening*
Consider rootless docker or Podman. If that is not for you:
* Note that these tips are less “fire-and-forget, sane defaults” and can be much more finicky. Whether they work well depends on the service in question. They may break container deployments and are often a matter of trial and error until you get them just right. (Feel free to hit me up on details; if I happen to be running the same services as you are, I may be able to tell you what works and what doesn’t.)
Sign in to comment. Sign in