As I mentioned in docker safe launch :
Currently, Docker uses five namespaces to change the appearance of processes in the system: Process, Network, Mount, Hostname, Shared Memory.
The fact that by default, as I mentioned in the previous question, " Docker Namespace at the kernel level ," the pid of the container is isolated from the host (unless you run them with --pid host ) by design.
If you use --pid=host , then these container boxes are visible from the host, but are not easily mapped to a specific container, as long as issue 10163 and --pid=container:id enabled.
Update to 2016: problem 10163 and --pid=container:id actually resolved by PR 22481 for docker 1.12, which allows you to join another container PID namespace.
source share