Using the image docker.io/php:5.6-fpm pulled by docker pull, you can run php normally, but without the mysql extension, you cannot connect to the mysql database.
Edit this image and install mysql extension
root@e71eeffe4200:/var/www/html# cd /usr/local/bin
root@e71eeffe4200:/usr/local/bin# ./docker-php-ext-install mysql
Use docker commit to get a new image docker.io/php:5.6-fpm-diy
After docker run this new image, the status is Exited (1), and there is no log information when using docker logs. Please ask. How do we troubleshoot this problem