使用docker-compose方式启动容器,提示Nosuchfileordirectory,我怀疑是不是这里错了,docker-compose.yml如下:version:"3.1"services:php:image:php:7.1.7-clivolumes:-.:/opt/phpprivileged:truecommand:["/opt/php/docker/test_runner.sh"]这里volumes想表达的是当前目录跟镜像中的/opt/php目录做共享,但是windows下可能不是这样写,试了./也不行,求解!具体报错如下:PSC:\Users\tanteng\website\DesignPatternsPHP>docker-composeupStartingdesignpatternsphp_php_1...Startingdesignpatternsphp_php_1...doneAttachingtodesignpatternsphp_php_1:Nosuchfileordirectorydesignpatternsphp_php_1exitedwithcode127
慕容森
潇潇雨雨
相关分类