title: How do you determine if a docker container is running on remote docker-machine or locally running in docker engine?
body: <p>To push the concerns of internet bandwidth to a cloud computer, I run my docker container on a remote docker-machine. This kind of set-up is very handy when you have pretty slow internet. My problem is that I don't know how to easily determine the host of a container.</p>
  
  <p>This is how I determine it:</p>
  
  <p>Run this, <code>docker run -d -p 8000:80 nginx</code> and visit --> <code>localhost:8000</code>; if it returns a nginx default page, then I know it's running the docker container locally.</p>
  
  <p>If I replace <code>localhost</code> with docker-machine ip and get the nginx page, then I know the container is on a remote system.</p>