我正在用Lando为一个Drupal8项目创建一个定制服务。这是我第一次真正尝试通过docker compose方法添加服务,我不确定我在做什么,即使在看完Lando文档之后也是如此。下面是我的.lando.yml文件。但是在运行lando start之后,我得到了error: (HTTP code 500) server error - container <portainer container ID> is not connected to the network lando_bridge_network
name: drupal8
recipe: drupal8
config:
php: 7.2
via: apache
webroot: web
xdebug: false
conf:
php: lando/config/php.ini
mysql: lando/config/my.cnf
services:
database:
type: mysql:5.7
pma:
type: phpmyadmin
hosts:
- database
appserver:
composer:
phpunit/phpunit: '*'
behat/behat: 3.3.1
run:
- "ln -s /usr/local/bin/composer /usr/local/bin/composer.phar"
portainer:
type: compose
services:
image: portainer/portainer
command: /opt/bin/entry_point.sh -d /data -H tcp://localhost:9001
tooling:
phpunit:
service: appserver
description: run PHPUnit- use lando phpunit
behat:
service: appserver
description: run behat- use lando behat
cmd: cd /app ; behat # Run behat from the /app directory发布于 2018-12-21 06:04:43
我在建立AWS elasticsearch时遇到了这个问题。
在终端中尝试执行以下操作:
docker network connect lando_bridge_network <container ID in error message>
更多信息:https://docs.docker.com/engine/reference/commandline/network_connect/#description
https://stackoverflow.com/questions/52610234
复制相似问题