Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't mount cgroups read-only for cgroups V1 #121

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

twz123
Copy link
Member

@twz123 twz123 commented Jun 26, 2024

Since Docker 25, read-only mounts will be recursively read-only. That spoils the fun for systemd.

Since Docker 25, read-only mounts will be recursively read-only. That
spoils the fun for systemd.

Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
@@ -312,7 +312,7 @@ func (c *Cluster) createMachineRunArgs(machine *Machine, name string, i int) []s
"-v", "/sys/fs/cgroup:/sys/fs/cgroup:rw")

} else {
runArgs = append(runArgs, "-v", "/sys/fs/cgroup:/sys/fs/cgroup:ro")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-recursive read-only mounts don't seem to be supported by the CLI, although they seem to be a thing if using the API directly.

@kke kke merged commit 8542909 into k0sproject:main Jun 27, 2024
15 checks passed
@kke kke mentioned this pull request Jun 27, 2024
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