docker php:7.4-fpm pdo driver not enable code example
Example 1: install php pdo mysql PHP5.6 alpine-apache
docker exec -it <container ID> docker-php-ext-install pdo pdo_mysql
Example 2: install php pdo mysql PHP5.6 alpine-apache
FROM php:5.6-apache
RUN docker-php-ext-install pdo pdo_mysql
COPY my-php-files/ /var/www/html/