docker run --pid host myimage

Category: Docker

docker run --pid host myimage

Run sharing the host's process namespace

Lets the container see all host processes instead of only its own, useful for debugging tools like strace or top. Relaxes isolation, so use it sparingly. The reverse of the default private PID namespace.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.