Can use variable $PWD in yml file?

I had used it in win10 with Docker Toolbox, it was work.
But when I use it in ubuntu-16.10, it cannot work.
why?