假设php脚本如下 a.php
<?php echo "OK";
启动phpcli docker
docker run -it --rm php:cli-alpine3.10 sh php -f a.php