Docker images built on top of Alpine Linux with the latest stable PHP Version and common extensions.
The images are automatically re-built and published on a weekly basis.
Image | Size |
---|---|
kreait/php:7.3 | |
kreait/php:7.3-dev | |
kreait/php:7.3-fpm | |
kreait/php:7.3-fpm-dev | |
kreait/php:7.4 | |
kreait/php:7.4-dev | |
kreait/php:7.4-fpm | |
kreait/php:7.4-fpm-dev |
All the images are pre-built with a user www-data
and a group with the same name. Generally there is no need to run containers with root
privileges, so we advise the following:
Specify a --user name and set the working directory on docker runs, e.g.:
docker run --user www-data -w /home/www-data --rm kreait/php:7.4-dev bash -c "php -v | grep 'Xdebug'"
Confirm it by running:
docker run --user www-data -w /home/www-data --rm kreait/php:7.4-dev bash -c "id ; env"