用docker搭建环境时可能会遇到错误:No releases available for package "xxxx"
No releases available for package "pecl.php.net/redis"
install failedERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c if [ ${INSTALL_PHPREDIS} = true ]; then printf "\n" | pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis ;fi' returned a non-zero code: 1这种情况较大可能是网络问题,即使将docker或者/etc/apt/sources.list改成国内源也会遇到,重新docker-compose up几次即可,若仍不行可尝试将.env中用到的环境的版本调低
建议.env中使用到的环境的版本不要太高