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?
Please note that I want to have the java code in the same java application which is running inside the container.