phpearth / docker-php

🐳 Docker For PHP developers - Docker images with PHP, Nginx, OpenLiteSpeed, Apache, Lighttpd, and Alpine
https://docs.php.earth/docker
MIT License
261 stars 80 forks source link

"exec: "/sbin/runit-wrapper":permission denied #54

Open 627095286 opened 3 years ago

627095286 commented 3 years ago

Back-off restarting failed container Created container php-apache-6cb59 Error: failed to start container "php-apache-6cb59": Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/sbin/runit-wrapper\": permission denied": unknown Back-off restarting failed container

627095286 commented 3 years ago

FROM alpine:3.9

Back-off restarting failed container Created container php-apache-6cb59 Error: failed to start container "php-apache-6cb59": Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: "/sbin/runit-wrapper": permission denied": unknown Back-off restarting failed container

627095286 commented 3 years ago

COPY tags/nginx / RUN chmod +x /sbin/runit-wrapper RUN chmod +x /sbin/runsvdir-start RUN chmod +x /etc/service/php-fpm/run RUN chmod +x /etc/service/nginx/run EXPOSE 80

CMD ["/sbin/runit-wrapper"]

solved