Docker Community Forums

Share and learn in the Docker community.

How to run php from docker inside windows?


(Mmagdy) #1

How to run php as a command inside windows

I can do that on linux by writing something like that

docker-compose exec php php “$@”

inside a file and then give it execute permission chmod +x

I can’t find an equivelant for that in windows.

For example I want to set php.validate.executablePath inside Vscode settings instead of installing php locally I want to refere to it from docker image and it only accepts executable file.

Thank you