Closed soupman99 closed 6 years ago
We copy drupal's source codes to the volume from /usr/src
when using Vanilla. So when you launch a container for the first time it takes some time to copy the sources. It could be that for some reason copying wasn't fully completed for the first time. You can validate it by checking that /vendor/autoload.php
exists under /usr/src
and does not under /var/www/html
.
The solution is to clean up your docker volumes and run again or running rsync again manually inside of the php container:
rsync -rlt "/usr/src/drupal/" "${APP_ROOT}/"
I copied the docker-compose.yml exactly from github & when I try install drupal I get this error:
Fatal error: require(): Failed opening required '/var/www/html/web/../vendor/autoload.php'
Codebase
Built-in vanilla Drupal
Host OS
macOS Sierra - 10.13.2
Docker info output
Docker compose file
Logs output