每次运行lando start
或在从模板lando rebuild
安装的项目上都会出现此错误。drupal 8
我重做了composer create project
, composer install
,lando destroy
等lando rebuild
。没有一个工作。我还检查了我是否有最新版本的lando
, composer
, & docker
。所以我不确定这是代码中的问题还是完全其他问题。
OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"cd\": executable file not found in $PATH": unknown
error: Looks like one of your build steps failed! with Error
at module.exports.sh.Promise.try.then (/snapshot/lando/build/cli/lib/shell.js:0:0)
From previous event:
at Shell.sh (/snapshot/lando/build/cli/lib/shell.js:0:0)
at Object.exports.dc (/snapshot/lando/build/cli/lib/bootstrap.js:0:0)
at compose (/snapshot/lando/build/cli/lib/bootstrap.js:0:0)
at exports.run.Promise.each.docker.isRunning.then.then (/snapshot/lando/build/cli/lib/router.js:0:0)
From previous event:
at exports.run.Promise.each.datum (/snapshot/lando/build/cli/lib/router.js:0:0)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)
From previous event:
at Object.exports.run (/snapshot/lando/build/cli/lib/router.js:0:0)
at run (/snapshot/lando/build/cli/lib/engine.js:0:0)
at exports.eventWrapper.daemon.up.then.then (/snapshot/lando/build/cli/lib/router.js:0:0)
From previous event:
at Object.exports.eventWrapper (/snapshot/lando/build/cli/lib/router.js:0:0)
at Engine.module.exports.constructor.engineCmd (/snapshot/lando/build/cli/lib/engine.js:0:0)
at Engine.run (/snapshot/lando/build/cli/lib/engine.js:0:0)
at Object.exports.runBuild (/snapshot/lando/build/cli/plugins/lando-services/lib/utils.js:0:0)
at AsyncEvents.module.exports.app.events.on.app.events.on (/snapshot/lando/build/cli/plugins/lando-services/app.js:0:0)
at AsyncEvents.handle (/snapshot/lando/build/cli/lib/events.js:0:0)
at emit.Promise.each.fn (/snapshot/lando/build/cli/lib/events.js:0:0)
From previous event:
at AsyncEvents.emit (/snapshot/lando/build/cli/lib/events.js:0:0)
at module.exports.start.initAndReport.then.then.then (/snapshot/lando/build/cli/lib/app.js:0:0)
From previous event:
at App.start (/snapshot/lando/build/cli/lib/app.js:0:0)
at Object.exports.appToggle (/snapshot/lando/build/cli/plugins/lando-core/lib/utils.js:0:0)
at Object.run (/snapshot/lando/build/cli/plugins/lando-core/tasks/start.js:0:0)
at module.exports.parseToYargs.checkForUpdates.then.lando.bootstrap.then.lando.events.emit.then.then.then.then.then (/snapshot/lando/build/cli/lib/cli.js:0:0)
From previous event:
at module.exports.parseToYargs.checkForUpdates.then.lando.bootstrap.then.lando (/snapshot/lando/build/cli/lib/cli.js:0:0)
From previous event:
at module.exports.parseToYargs.checkForUpdates.then (/snapshot/lando/build/cli/lib/cli.js:0:0)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)
From previous event:
at Object.handler (/snapshot/lando/build/cli/lib/cli.js:0:0)
at Object.runCommand (/snapshot/lando/build/cli/node_modules/yargs/lib/command.js:238:44)
at Object.parseArgs [as _parseArgs] (/snapshot/lando/build/cli/node_modules/yargs/yargs.js:1063:30)
at Function.get [as argv] (/snapshot/lando/build/cli/node_modules/yargs/yargs.js:1004:21)
at Cli.run (/snapshot/lando/build/cli/lib/cli.js:0:0)
at lando.bootstrap.then.lando.getApp.init.then (/snapshot/lando/build/cli/bin/lando.js:0:0)
From previous event:
at lando.bootstrap.then.lando (/snapshot/lando/build/cli/bin/lando.js:0:0)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)
From previous event:
at Object.<anonymous> (/snapshot/lando/build/cli/bin/lando.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1254:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:711:10)
at Module.load (internal/modules/cjs/loader.js:610:32)
at tryModuleLoad (internal/modules/cjs/loader.js:549:12)
at Function.Module._load (internal/modules/cjs/loader.js:541:3)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1309:12)
at startup (internal/bootstrap/node.js:274:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:608:3)
warn: This **MAY** prevent your app from working
warn: Check for errors above, fix them, and try again
尽管有这个错误,我还是收到了工作网址。
编辑:添加 docker-compose.yml 文件...
version: '2'
services:
solr:
image: solr:8.1
ports:
- "8983:8983"
volumes:
- data:/opt/solr/server/solr/d8
- ./tests/solr-conf/8.x:/solr-conf/conf
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- d8
- /solr-conf
volumes:
data: