如何修复 Docker-Nextcloud Module php-imagick in this instance has no SVG support
问题:
使用官方 nextcloud docker 镜像时,你将看到类似这样的消息
module_php_imagick_warning.txt
Module php-imagick in this instance has no SVG support. For better compatibility it is recommended to install it.在系统概览页面上
解决方案
这是 docker 镜像中的 bug,可能很快会修复 - 在此期间,我们可以只在容器上手动安装所需的库:
install_libmagickcore_commands.txt
docker-compose exec nextcloud apt -y update
docker-compose exec nextcloud apt -y install libmagickcore-6.q16-6-extra如果你重新创建容器,此更改将丢失,但在我看来,最好在这里选择简单的解决方案,可能再做一两次,而不是像更新 docker 镜像然后稍后迁移回官方镜像这样的永久但更费力的过程。
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow