Docker Laravel Mysql: could not find driver
try to install php-mysql with following command sudo apt-get install php-mysql
and restart your server
Adding RUN docker-php-ext-install mysqli pdo pdo_mysql
(without mysql
) to Dockerfile as @NigelRen suggested resolved this error.