A basic docker container running PHP 7.0 and PHP 5.6, depending on with tag is used
456
A basic docker container running PHP 7.0 or PHP 5.6.
This container should be useful when running simple php script.
This container is automatically build with hub.docker.com on git push.
Pull container :
docker pull seblegall/php-docker
Run PHP :
docker run -it --rm seblegall/php-docker php -v
will output :
PHP 7.0.6-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
Depending on tag you use (e.g. 7.0 or 5.6), this container contains useful tools and PHP extensions.
To build the container (replace by the new container tag e.g. : 5.6):
docker build -t seblegall/php-docker:<tag> <php_version>/
To push the container on hub.docker.com
docker push seblegall/php-docker:<tag>
Content type
Image
Digest
Size
257 MB
Last updated
over 10 years ago
docker pull seblegall/php-docker