我开始将Docker与Laradock结合使用。当我运行此命令时
docker-compose up -d apache2 mysql
我收到此错误:
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.proxy.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.proxy2.expose is invalid: should be of the format 'PORT[/PROTOCOL]'
services.memcached.ports is invalid: Port ranges don't match in length
services.beanstalkd.ports is invalid: Port ranges don't match in length
services.mssql.ports is invalid: Port ranges don't match in length
services.rabbitmq.ports is invalid: Port ranges don't match in length
services.rabbitmq.ports is invalid: Port ranges don't match in length
services.netdata.ports is invalid: Port ranges don't match in length
services.beanstalkd-console.ports is invalid: Port ranges don't match in length
services.zookeeper.ports is invalid: Port ranges don't match in length
services.gitlab.ports is invalid: Port ranges don't match in length
services.workspace.ports is invalid: Port ranges don't match in length
services.maildev.ports is invalid: Port ranges don't match in length
services.mongo.ports is invalid: Port ranges don't match in length
我正在使用Mac,并且已经重新启动docker。我需要解决什么?
最佳答案
仅用于获取有关使用laradock出现此错误的人的信息,这是因为缺少.env文件,请在docker(laradock)文件夹中创建具有以下内容的.env文件:
https://raw.githubusercontent.com/laradock/laradock/master/env-example
关于laravel - Laradock端口范围长度不匹配错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55256652/