joined process cannot write ns_last_pid of the container

100 views Asked by At

A process from a host joined a container's namepsace and is trying to write ns_last_pid file present in /proc/sys/kernel/ns_last_pid. but it is giving an error of Read only file system.

whereas i'm able to do this on the host's ns_last_pid file via this solution unable to write /proc/sys/kernel/ns_last_pid file

How to solve this issue?

1

There are 1 answers

0
Muzammil On

You have to run your container in --privileged mode to be able to write to /proc/sys/kernel/ns_last_pid.