php
PHP is a server-side scripting language designed for web development, but which can also be used as a general-purpose programming language. PHP can be added to straight HTML or it can be used with a variety of templating engines and web frameworks. PHP code is usually processed by an interpreter, which is either implemented as a native module on the web-server or as a common gateway interface (CGI).
See php.net for more information
This image is built by IBM to run on the IBM Z architecture and is not affiliated with any other community that provides a version of this image.
License
View license information
here
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
Versions
Use the pull string below for the version of this image you require.
8.1.10-cli-bullseye |
docker pull icr.io/ibmz/php@sha256:c134f3ea82ad2fb899431658e0ccd3065e1b5bf382b1a8724a082bffc9cf4327 |
Vulnerability Report | 10-04-2024 | 8.2.3-cli-bullseye |
docker pull icr.io/ibmz/php@sha256:03f8460ea8ec48380d906f199ee690f4b3bdcdcd3655642de553e6c16ea6db94 |
Vulnerability Report | 10-04-2024 |
Version |
Pull String |
Security (IBM Cloud) |
Created |
Usage Notes
Note that we only provide the PHP runtime, PECL, and tooling to to assist in installing extensions. If you wish to use this image to run a web server, it is your responsibility to install the packages required for running a PHP based web server.
Create a Dockerfile in your PHP project:
FROM icr.io/ibmz/php:[version]
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
CMD [ "php", "./your-script.php" ]
Then, run the commands to build and run the Docker image:
docker build -t my-php-app .
docker run -it --rm --name my-running-app my-php-app