Docker 101 : Sharing the PID namespace with the host machine
In docker, we could achieve that using the "--pid=host" parameter on the command line, when creating our container.
We create a container using the below command.
For our example, we will use "Alpine", which is a very small distribution of Linux.
At the command prompt, we type the command "ps" to see the processes running in the PID namespace of our "Alpine" container:
Remark:
We can even have access from our "Alpine" container to processes from other containers that are running on the same host.
Comments