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