gpt4 book ai didi

docker - 容器未连接到网络lando_bridge_network

转载 作者:行者123 更新时间:2023-12-02 20:02:17 29 4
gpt4 key购买 nike

我正在Lando中为Drupal 8项目创建定制服务。这是我第一次真正尝试通过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

最佳答案

建立AWS Elasticsearch时遇到了这个问题。

在终端中尝试以下操作:
docker network connect lando_bridge_network <container ID in error message>

更多信息:
https://docs.docker.com/engine/reference/commandline/network_connect/#description

关于docker - 容器未连接到网络lando_bridge_network,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52610234/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com