pms-docker icon indicating copy to clipboard operation
pms-docker copied to clipboard

feat: Move /.firstRunComplete to /tmp to prepare readonly rootfs

Open mkilchhofer opened this issue 1 year ago • 12 comments

I currently migrate all my Kubernetes workloads to containers with read-only rootfs.

The plex container is a bit tricky with the /.firstRunComplete file. If you'd move that file to /tmp, it would be possible to mount a temporary filesystem which is writable (Kubernetes emptyDir) below /tmp.

The s6 suite also have issues with read-only rootfs but it (officially) supports it by setting S6_READ_ONLY_ROOT=1. Ref: https://github.com/just-containers/s6-overlay#read-only-root-filesystem

mkilchhofer avatar Feb 25 '23 18:02 mkilchhofer