0
votes

I have a Rust application, I have dockerized it and I run it using docker run ...

Now, is there any way I can know inside the code if docker run is running with --pid host

because based on that I want to identify if code is running in Host namespace / Container namespace ! (Any solution, other than getting PID value is also welcome)