Skip to content

Comments

Mount container's root filesystem as read only#231

Open
anshupande wants to merge 1 commit intoadobe-platform:masterfrom
anshupande:root-filesystem-readonly
Open

Mount container's root filesystem as read only#231
anshupande wants to merge 1 commit intoadobe-platform:masterfrom
anshupande:root-filesystem-readonly

Conversation

@anshupande
Copy link
Contributor

@anshupande anshupande commented Jun 2, 2016

The container's root file system should be treated as a 'golden image' and any writes to the rootfilesystem should be avoided. You should explicitly define a container volume for writing. Add a --read-only flag to allow the container's root filesystem to bemounted as read only. This can be used in combination with volumes to force a container's process to only write to locations that will be persisted. refer: https://benchmarks.cisecurity.org/tools2/docker/CIS_Docker_1.11.0_Benchmark_v1.0.0.pdf

@anshupande
Copy link
Contributor Author

@matthewdfuller
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants