0

I've got this error when launching a php worker on Iron.io :

PHP Fatal error:  Class 'PDO' not found in /mnt/task/...

My PHP script just call the native PDO extension like this :

$db = new PDO (...);

Anybody know if there's a known problem with the docker image iron/php and the PDO extension ?

Thank you.

4

1 回答 1

2

尝试 php-pdo 包添加到您的 docker 映像中。

通过 Dockerfile 安装 php-pdo 包的示例: FROM iron/php ... RUN apk add php-pdo ...

于 2016-01-26T14:33:40.963 回答