下载tripal官方镜像:
docker pull tripalproject/tripaldocker:latest
下载tripal模块:
git clone https://github.com/tripal/t4d8
启动镜像运行网站:
docker run --publish=80:80 --name=t4d8 -tid --volume=/web/t4d8:/var/www/drupal8/web/modules/contrib/tripal tripalproject/tripaldocker:latest
常见错误1:The provided host name is not valid for this server. 解决办法见:https://tripal4.readthedocs.io/en/latest/install/docker.html
常见错误2:
The website encountered an unexpected error. Please try again later.
PDOException: SQLSTATE[08006] [7] FATAL: no pg_hba.conf entry for host "::1", user "drupaladmin", database "sitedb", SSL on FATAL: no pg_hba.conf entry for host "::1", user "drupaladmin", database "sitedb", SSL off in Drupal\Component\DependencyInjection\PhpArrayContainer->createService() (line 79 of /var/www/drupal8/web/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php).
Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array, 'database') (Line: 176)
Drupal\Component\DependencyInjection\Container->get('database', 1) (Line: 212)
Drupal\Component\DependencyInjection\PhpArrayContainer->resolveServicesAndParameters(Array) (Line: 62)
Drupal\Component\DependencyInjection\PhpArrayContainer->createService(Array, 'cache.container') (Line: 176)
Drupal\Component\DependencyInjection\Container->get('cache.container') (Line: 550)
Drupal\Core\DrupalKernel->getCachedContainerDefinition() (Line: 903)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 473)
Drupal\Core\DrupalKernel->boot() (Line: 716)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
解决办法: 将 /var/www/drupal8/web/sites/default/settings.php 文件种的localhost 修改: 'host' => '127.0.0.1',
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!