title: How to get docker container name in java code
body: <p>If I am running a java application inside a Docker container and I want to fetch the name of the running docker container (inside which my java application is running) from the same java application code, what is the way to get the container name through java code?</p>
  
  <p>Please note that I want to have the java code in the same java application which is running inside the container.</p>