image: php:7.2.1
pipelines:
default:
- step:
caches:
- composer
script:
- apt-get update && apt-get install -y unzip zlib1g-dev git curl libmcrypt-dev mysql-client pdo pdo_mysql
- docker-php-ext-install mcrypt && docker-php-ext-install pdo pdo_mysql && docker-php-ext-install mcrypt
- docker-php-ext-install zip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install --optimize-autoloader
- php bin/console doctrine:migrations:migrate
- php bin/console cache:clear
- php bin/console cache:warmup
- php vendor/bin/codecept run unit
services:
- mysql
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: ***
MYSQL_DATABASE: ***
MYSQL_USER: ***
MYSQL_PASSWORD: ***
Hello! I have a problem. Above is my config.
And this is the problem:

What's going wrong. I tried many variations, but it either swears that doctrine can not find pdo_mysql driver or the error above? Help please solve this problem