as you can see on this (my own) question some time ago, one mentioned that the volumes work like a one way.
set PHP path from host to docker container
someone answered but i couldnt get it running like he wrote. in my case I simply installed php7 on my localhost and set the path to VSC. maybe this helps you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.