Play change RUNNING_PID file path

I am trying to store the RUNNING_PID file at /var/run instead of root directory.
Tried all the options suggested at:
Another SO question about the subject

and the solution play suggest in their documnetation: Play additional configuration

  • Slowness in Docker container
  • What's the difference between Docker for Windows and Docker on Windows?
  • `docker service update` from remote server with cert
  • Jenkins build Docker raise error Unrecognized field “ExecDriver”
  • Docker compose getting stuck
  • Arguments for overridden docker entrypoint
  • Yet when I start my app the RUNNING_PID file is created in root directory and the /var/run/play.pid remains empty

  • Why does not work docker command in MacOS?
  • crontab not running in docker container shell
  • How to edit files inside a docker container?
  • Starting Consul in docker does not expose http ports
  • How about the docker run in virtul machine best practice?
  • Docker with Compose and Swarm
  • One Solution collect form web for “Play change RUNNING_PID file path”

    Put

    play.server.pidfile.path=/var/run/RUNNING_PID
    

    in your application.conf

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.