I tried to run a docker command through the docker task in Azure devops with the build in docker task.
As variable for the volume of the docker command I gave this as value
But it keeps failing with the error
/usr/bin/docker: Error response from daemon: create $(pwd)/out: "$(pwd)/out" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
I tried to give the same docker run command with the same -v value inside my local machine and this works perfectly. So I guess this is an Azure devops problem or a value that I forget to give along
My host agent is an ubuntu16
And the build task is as followed