The official PHP docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
Current PHP docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.
PHP is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
Learn more on PHP.
The tag of each PHP docker image is consist of the version of PHP and the version of basic image. The details are as follows
| Tags | Currently | Architectures |
|---|---|---|
| 8.5.10-oe2403sp4 | php 8.5.10 on openEuler 24.03-LTS-SP4 | amd64, arm64 |
In this usage, users can select the corresponding {Tag} based on their requirements.
Pull the openeuler/php image from docker
docker pull openeuler/php:{Tag}
Start a PHP container from the image
docker run -it --name my-php openeuler/php:{Tag}
Run a PHP script inside the container
docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp openeuler/php:{Tag} php your-script.php
View container running logs
docker logs -f my-php
To get an interactive shell
docker exec -it my-php /bin/bash
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
Content type
Image
Digest
sha256:8258b5ff6…
Size
136.2 MB
Last updated
about 13 hours ago
docker pull openeuler/php