Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

kreait/docker-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Images

PHP

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.

Available tags and information

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

Docker Security

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"