We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ro
When I create the container, privileged is turned on, but since the pause container sysfs is ro, my privileged container is also ro
Hopefully, in the case of non-bind, the sysfs of the privileged container is rw
pod.json
{ "metadata": { "name": "privileged-pod", "namespace": "k8s.io", "uid": "hdishd83djaidwnduwk28bcsb" }, "command": [ "top" ], "log_directory": "/var/log/pods", "linux": { "security_context": { "privileged": true }
container.json
{ "metadata": { "name": "busybox-200-3" }, "image": { "image": "docker.io/library/busybox" }, "command": [ "top" ], "tty": true, "stdin": true, "log_path": "busybox-200-3.log", "mounts":[ { "container_path": "/sys", "host_path": "/sys" } ], "linux": { "security_context": { "privileged": true
In container
/ # mount | grep sysfs sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
container's config.json:
{ "destination": "/sys", "type": "sysfs", "source": "sysfs", "options": [ "nosuid", "noexec", "nodev", "rw" ] },
because pod's config.json:
{ "destination": "/sys", "type": "sysfs", "source": "sysfs", "options": [ "nosuid", "noexec", "nodev", "ro" ] },
cat /etc/os-release
uname -a
The text was updated successfully, but these errors were encountered:
pause container
No branches or pull requests
What happened:
When I create the container, privileged is turned on, but since the pause container sysfs is ro, my privileged container is also ro
What you expected to happen:
Hopefully, in the case of non-bind, the sysfs of the privileged container is rw
How to reproduce it (as minimally and precisely as possible):
pod.json
container.json
In container
container's config.json:
because pod's config.json:
Anything else we need to know?:
Environment:
cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: