Выполняю миграцию
php artisan migrate
и получаю такую ошибку
Illuminate\Database\QueryException : could not find driver
Мой Dokerfile
FROM php:7-fpm
RUN apt-get update -y && apt-get install -y openssl zip unzip git libpq-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-install pdo mbstring
RUN apt-get install --no-install-recommends -y libpq-dev
RUN docker-php-ext-install pdo pgsql pdo_pgsql
COPY php.ini /usr/local/etc/php
WORKDIR /var/www
в php.ini раскоментированы строки
extension=pdo_pgsql
extension=pgsql
Вывод phpinfo()
DB_CONNECTION=pgsql
DB_HOST=192.168.192.2
DB_PORT=5432
DB_DATABASE=dbname
DB_USERNAME=dbuser
DB_PASSWORD=dbpassword
'default' => env('DB_CONNECTION', 'pgsql'),