fhsinchy / guide-to-containerizing-laravel-applications

Project codes used in "A Practical Guide to Containerizing Laravel Applications With Docker"
https://adevait.com/laravel/containerizing-laravel-applications-with-docker
38 stars 44 forks source link

Error while trying to docker compose up #1

Closed mdmahbubhelal closed 2 years ago

mdmahbubhelal commented 2 years ago

This is the error I get while I try to start the container using docker compose.

Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/usr/local/bin/docker-php-entrypoint-dev": permission denied: unknown

fhsinchy commented 2 years ago

@mdmahbubhelal are you using Windows or Linux?

mdmahbubhelal commented 2 years ago

Windows with wsl2.

mdmahbubhelal commented 2 years ago

I fixed the problem by adding the following lines to the Dockerfile

RUN chmod 755 /usr/local/bin/docker-php-entrypoint
RUN chmod 755 /usr/local/bin/docker-php-entrypoint-dev

Thanks for the awesome docker setup.