Using docker-compose startup to report an error: how can No such file or directory be resolved?

  docker, question

Start the container using the docker-compose method and prompt No such file or directory. I wonder if there is something wrong here. docker-compose.yml is as follows:

version: "3.1"
 
 services:
 php:
 image: php:7.1.7-cli
 volumes:
 - .:/opt/php
 privileged: true
 command: ["/opt/php/docker/test_runner.sh"]

Volumes here means that the current directory is shared with the /opt/php directory in the mirror, but it may not be written in this way under windows, so try./also not, solve!

The specific errors reported are as follows:

PS C:\Users\tanteng\website\DesignPatternsPHP> docker-compose up
 Starting designpatternsphp_php_1   ...
 Starting designpatternsphp_php_1 ... done
 Attaching to designpatternsphp_php_1
 : No such file or directory
 designpatternsphp_php_1 exited with code 127

Let me show you my nginx configuration:

services:
 nginx:
 image: "nginx:alpine"
 container_name: oxf-nginx
 restart: on-failure
 ports:
 - "80:80"
 volumes:
 - ./data/conf/nginx.conf:/etc/nginx/nginx.conf
 - ./data/html/:/usr/share/nginx/html
 - ./data/log/:/var/log/nginx
 environment:
 - NGINX_PORT=80
 command: nginx -g 'daemon off;'

The directory tree is as follows:

.
 ├── data
 │   ├── conf
 │   │   └── nginx.conf
 │   ├── html
 │   │   ├──  index.html
 │   │   ├── test
 │   │   │   ├──  index.html
 │   │   │   ├──  test.htm
 │   │   │   └──  test.html
 │   │   └──  test.htm
 │   └── log
 │       ├── access.log
 │       └── error.log
 └── docker-compose.yaml