title: A way to test if processes running inside docker are on the same host
body: <p>Let's say I have two processes running C++ code inside docker (separate images) on a single machine/host.  </p>
  
  <p>How can I figure out if these processes are sharing the same host machine or not (by writing C++ code / Linux commands, that runs inside the container). </p>
  
  <p>EDIT</p>
  
  <p><a href="https://stackoverflow.com/users/6309/vonc">VonC</a> mentioned adding this information from the outside and "help the container" with more insights but I'm looking for ways to do so from the inside without access to the Dockerfile and/or docker launch environment.</p>