E: Package 'mysql-client' has no installation candidate in php-fpm image build using docker compose

后端 未结 4 1995
萌比男神i
萌比男神i 2020-12-25 09:09

Im fairly new to docker and so im trying to learn more about it using a laravel project, im following this tutorial:

https://www.digitalocean.com/community/tutorials

相关标签:
4条回答
  • 2020-12-25 09:42

    If you still want to use the mysql client, it's called default-mysql-client now.

    0 讨论(0)
  • 2020-12-25 09:47

    I had the same issue in php:7.1-apache. Replacing mysql-client with mariadb-client works for me. Thank you.

    0 讨论(0)
  • 2020-12-25 09:51

    php:7.3-fpm now use Debian 10 (Buster) as its base image and Buster ships with MariaDB, so just replace mysql-client with mariadb-client should fix it.

    0 讨论(0)
  • 2020-12-25 10:04

    php:7.2-apache triggers the error as well, but I resolve it using php:7.2.18-apache

    0 讨论(0)
提交回复
热议问题