There is a php image in docker-compose.yml

php: image: evild/alpine-php:7.0.6 container_name: lemp_php restart: always volumes: - ./project:/var/www/ depends_on: - db links: - db** 

Initial line

 volumes: - ./project:/var/www/ 

was

 volumes: - ./project:/var/www/html 

and the image was launched. Changed the line to - ./project:/var/www/

Error is displayed

ERROR: for php Can not start service php: invalid header field value "oci runtime error: container_linux.go: 247: starting container process caused \" chdir to cwd (\\ "/ var / www / html \\") set in config .json failed: no such file or directory \ "\ n" ERROR: Encountered errors while bringing up the project.

    1 answer 1

    You have a working directory with / var / www / html, which does not exist with this binding, which is clearly indicated by an error. Either create this directory or change it in the launch parameters.

     php: image: evild/alpine-php:7.0.6 ... working_dir: /var/www 
    • Thanks, solved the problem - ruslik