Reference
Command reference
The images add helper commands to /usr/local/bin for installing packages and extensions, fixing file permissions, and checking Laravel processes.
Every command from the official PHP image, such as docker-php-ext-install and pecl, also works. The images run as www-data, so commands marked Requires USER root need USER root in your Dockerfile and USER www-data again afterward.
/
18 commands
- All variationsRun
php artisanfrom any directory. - All variations Requires
USER rootInstall OS packages on Alpine only. - All variations Requires
USER rootInstall OS packages on Debian only. - All variationsDownload a file, retrying failed requests.
- All variationsThe image's entrypoint, which runs the start-up scripts.
- All variations Requires
USER rootInstall a specific version ofinstall-php-extensions. - All variations Requires
USER rootInstall PHP extensions, optionally from another source. - fpm-nginx · fpm-apache Requires
USER rootRun the start-up scripts as S6 Overlay services. - All variations Requires
USER rootGive a UID and GID ownership of the files the image needs. - All variations Requires
USER rootChange the UID and GID ofwww-dataor another user. - All variationsCheck that Laravel Horizon is running.
- All variationsCheck the Laravel Nightwatch agent.
- All variationsCheck that Laravel Octane is running.
- All variationsCheck that a
queue:workprocess is running. - All variationsCheck that a
reverb:startprocess is running. - All variationsCheck that a
schedule:workprocess is running. - All variations Requires
USER rootInstall PHP extensions and the libraries they need. - fpm · fpm-nginx · fpm-apacheCheck PHP-FPM through its ping and status pages.