title: Docker. Run software with license based on host id
body: <p>I am developing a new product implemented in Java that requires a license to run. The license validation is based on the server ID. If I run it directly in a linux server it is not a problem.</p>
  
  <p>But, I would like to offer the option of running my software inside docker, but the problem is that I don't know how to get the host ID from the docker container. I don't want to use docker container ID, as the customer could require to recreate it (for instance for a software update), so I need to know the ID of the host server.</p>
  
  <p>I thought about using the MAC address, but it requires to run the container with the "--net=host" option and due to security reasons I would like to avoid to use that option.</p>