mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-06-28 08:36:20 +00:00
07d1c7c968
When removing the duplicated file and directory via rm -d, if it's a non-empty directory, it will prompt the warning message that the directory could not be removed becuase it is not empty. This is as expectation, as there are other files under the same diretory and we need to keep them. Hide these warning message to avoid confusion. Signed-off-by: Liu, Jianjun <jianjun.liu@intel.com>
php
This provides a Clear Linux* php basic cli instance.
Build
docker build -t clearlinux/php .
Or just pull it from Dockerhub
docker pull clearlinux/php
start a php instance
docker run --name some-php clearlinux/php
Run my own php instance
Create a Dockerfile in your own php project
FROM clearlinux/php:latest
COPY . /usr/src/myphpapp
WORKDIR /usr/src/myphpapp
CMD [ "php", "./my-script.php" ]
Then, run the commands to build and run the Docker image:
$ docker build -t my-own-php-instance .
$ docker run -it --rm --name my-running-php my-own-php-instance
Extra Build ARGs
swupd_argsSpecifies SWUPD flags
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#arg