search

Home  >  Q&A  >  body text

php - The status is Exited (1) after using docker run

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

漂亮男人漂亮男人2753 days ago744

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-06-12 09:23:19

    docker run -idt XXX
    

    reply
    0
  • Cancelreply